regmove.c (regmove_optimize): If we end up moving the original insn due to lifetime overlaps...
* regmove.c (regmove_optimize): If we end up moving the original insn due to lifetime overlaps, make sure to move REG_NOTES too. Fixes x86 (and maybe h8) failure. From-SVN: r15435
This commit is contained in:
parent
fca9d4b0d4
commit
124da27518
|
@ -1,3 +1,9 @@
|
|||
Sun Sep 14 11:11:05 1997 Jeffrey A Law (law@cygnus.com)
|
||||
|
||||
* regmove.c (regmove_optimize): If we end up moving the
|
||||
original insn due to lifetime overlaps, make sure to move
|
||||
REG_NOTES too.
|
||||
|
||||
Sat Sep 13 15:51:11 1997 Manfred Hollstein <manfred@s-direktnet.de>
|
||||
|
||||
* Makefile.in (INSTALL_{PROGRAM,DATA}): Use value found by configure.
|
||||
|
|
|
@ -515,6 +515,8 @@ regmove_optimize (f, nregs, regmove_dump_file)
|
|||
else
|
||||
#endif
|
||||
{
|
||||
rtx notes = REG_NOTES (insn);
|
||||
|
||||
emit_insn_after_with_line_notes
|
||||
(pat, PREV_INSN (p), insn);
|
||||
PUT_CODE (insn, NOTE);
|
||||
|
@ -525,6 +527,8 @@ regmove_optimize (f, nregs, regmove_dump_file)
|
|||
for the new insn. */
|
||||
for (insn = p; PATTERN (insn) != pat; )
|
||||
insn = PREV_INSN (insn);
|
||||
|
||||
REG_NOTES (insn) = notes;
|
||||
}
|
||||
}
|
||||
/* Sometimes we'd generate src = const; src += n;
|
||||
|
|
Loading…
Reference in New Issue