Commit 19ca869b by Joern Rennecke Committed by Jeff Law

reload1.c (move2add_note_store): Check for simple auto-inc in destination.

        * reload1.c (move2add_note_store): Check for simple
        auto-inc in destination.

From-SVN: r36923
parent 2ddb1ca1
2000-10-17 Joern Rennecke <amylaar@redhat.co.uk>
* reload1.c (move2add_note_store): Check for simple
auto-inc in destination.
2000-10-17 Michael Chastain <chastain@redhat.com>
* config/i386/i386-aout.h: define INT_ASM_OP.
......
......@@ -9024,6 +9024,20 @@ move2add_note_store (dst, set, data)
dst = SUBREG_REG (dst);
}
/* Some targets do argument pushes without adding REG_INC notes. */
if (GET_CODE (dst) == MEM)
{
dst = XEXP (dst, 0);
if (GET_CODE (dst) == PRE_INC || GET_CODE (dst) == POST_DEC
|| GET_CODE (dst) == PRE_DEC || GET_CODE (dst) == POST_DEC)
{
regno = REGNO (XEXP (dst, 0));
reg_set_luid[regno] = move2add_luid;
reg_offset[regno] = dst;
}
return;
}
if (GET_CODE (dst) != REG)
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment