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

if the register dies in the succeeding insn.

From-SVN: r7308
This commit is contained in:
Richard Kenner 1994-05-16 16:21:39 -04:00
parent 4ac0968744
commit 89861c3867
1 changed files with 3 additions and 0 deletions

View File

@ -2516,6 +2516,9 @@ try_pre_increment_1 (insn)
rtx y = reg_next_use[regno];
if (y != 0
&& 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)),
amount))
{