Commit 89861c38 by Richard Kenner

(try_pre_increment_1): Don't try to create a pre-increment expression

if the register dies in the succeeding insn.

From-SVN: r7308
parent 4ac09687
...@@ -2516,6 +2516,9 @@ try_pre_increment_1 (insn) ...@@ -2516,6 +2516,9 @@ try_pre_increment_1 (insn)
rtx y = reg_next_use[regno]; rtx y = reg_next_use[regno];
if (y != 0 if (y != 0
&& BLOCK_NUM (y) == BLOCK_NUM (insn) && BLOCK_NUM (y) == BLOCK_NUM (insn)
/* Don't do this if the reg dies, or gets set in y; a standard addressing
mode would be better. */
&& ! dead_or_set_p (y, SET_DEST (x))
&& try_pre_increment (y, SET_DEST (PATTERN (insn)), && try_pre_increment (y, SET_DEST (PATTERN (insn)),
amount)) amount))
{ {
......
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