flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with constant offset.

* flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
constant offset.

From-SVN: r61333
This commit is contained in:
Richard Earnshaw 2003-01-15 16:06:47 +00:00 committed by Richard Earnshaw
parent 3cd4577449
commit 89c4b81046
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2003-01-15 Richard Earnshaw <rearnsha@arm.com>
* flow.c (find_auto_inc): Also try to generate a PRE_MODIFY with
constant offset.
2003-01-15 Richard Earnshaw <rearnsha@arm.com>
* arm.h (HAVE_PRE_MODIFY_DISP, HAVE_PRE_MODIFY_REG): Define.

View File

@ -3525,6 +3525,12 @@ find_auto_inc (pbi, x, insn)
addr,
inc_val)),
insn, x, incr, addr);
else if (HAVE_PRE_MODIFY_DISP && offset == INTVAL (inc_val))
attempt_auto_inc (pbi, gen_rtx_PRE_MODIFY (Pmode, addr,
gen_rtx_PLUS (Pmode,
addr,
inc_val)),
insn, x, incr, addr);
}
else if (GET_CODE (inc_val) == REG
&& ! reg_set_between_p (inc_val, PREV_INSN (insn),