do not propagate constants into jump_insn's for machines with CC0, more than once

From-SVN: r37039
This commit is contained in:
Aldy Hernandez 2000-10-24 22:49:39 +00:00 committed by Aldy Hernandez
parent 5e2c51baa7
commit d7836e38b7
2 changed files with 12 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2000-10-24 Aldy Hernandez <aldyh@redhat.com>
* gcse.c (cprop_insn): do not propagate constants into jump_insn
for machines with CC0 more than once.
2000-10-24 Richard Henderson <rth@cygnus.com>, Aldy <aldyh@cygnus.com>
* config/mn10300/mn10300.h (PREFERRED_RELOAD_CLASS): Treat

View File

@ -3948,7 +3948,13 @@ cprop_insn (insn, alter_jumps)
&& GET_CODE (NEXT_INSN (insn)) == JUMP_INSN
&& condjump_p (NEXT_INSN (insn))
&& ! simplejump_p (NEXT_INSN (insn)))
changed |= cprop_cc0_jump (insn, reg_used, src);
{
if (cprop_cc0_jump (insn, reg_used, src))
{
changed = 1;
break;
}
}
#endif
}
else if (GET_CODE (src) == REG