Commit 2f33c635 by Herman A.J. ten Brugge Committed by Richard Henderson

regmove.c (try_auto_increment): Change REG_DEAD into REG_UNUSED when register dies in the insn.

        * regmove.c (try_auto_increment): Change REG_DEAD into REG_UNUSED
        when register dies in the insn.

From-SVN: r39358
parent 22ef15cf
2001-01-30 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
* regmove.c (try_auto_increment): Change REG_DEAD into REG_UNUSED
when register dies in the insn.
2001-01-30 Neil Booth <neil@daikokuya.demon.co.uk>
* diagnostic.c (fatal): Fix word wrap.
......
......@@ -146,6 +146,16 @@ try_auto_increment (insn, inc_insn, inc_insn_set, reg, increment, pre)
gen_rtx_fmt_e (inc_code, Pmode, reg), 1);
if (apply_change_group ())
{
/* If there is a REG_DEAD note on this insn, we must
change this not to REG_UNUSED meaning that the register
is set, but the value is dead. Failure to do so will
result in a sched1 abort -- when it recomputes lifetime
information, the number of REG_DEAD notes will have
changed. */
rtx note = find_reg_note (insn, REG_DEAD, reg);
if (note)
PUT_MODE (note, REG_UNUSED);
REG_NOTES (insn)
= gen_rtx_EXPR_LIST (REG_INC,
reg, REG_NOTES (insn));
......
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