Commit 124da275 by Jeffrey A Law Committed by Jeff Law

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
parent fca9d4b0
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> Sat Sep 13 15:51:11 1997 Manfred Hollstein <manfred@s-direktnet.de>
* Makefile.in (INSTALL_{PROGRAM,DATA}): Use value found by configure. * Makefile.in (INSTALL_{PROGRAM,DATA}): Use value found by configure.
......
...@@ -515,6 +515,8 @@ regmove_optimize (f, nregs, regmove_dump_file) ...@@ -515,6 +515,8 @@ regmove_optimize (f, nregs, regmove_dump_file)
else else
#endif #endif
{ {
rtx notes = REG_NOTES (insn);
emit_insn_after_with_line_notes emit_insn_after_with_line_notes
(pat, PREV_INSN (p), insn); (pat, PREV_INSN (p), insn);
PUT_CODE (insn, NOTE); PUT_CODE (insn, NOTE);
...@@ -525,6 +527,8 @@ regmove_optimize (f, nregs, regmove_dump_file) ...@@ -525,6 +527,8 @@ regmove_optimize (f, nregs, regmove_dump_file)
for the new insn. */ for the new insn. */
for (insn = p; PATTERN (insn) != pat; ) for (insn = p; PATTERN (insn) != pat; )
insn = PREV_INSN (insn); insn = PREV_INSN (insn);
REG_NOTES (insn) = notes;
} }
} }
/* Sometimes we'd generate src = const; src += n; /* Sometimes we'd generate src = const; src += n;
......
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