Commit b294ca38 by J"orn Rennecke Committed by Jeff Law

reload1.c (delete_dead_insn): Don't delete feeding insn if that insn has side effects.

	* reload1.c (delete_dead_insn): Don't delete feeding insn
	if that insn has side effects.

From-SVN: r20975
parent 6186ed06
......@@ -13,6 +13,9 @@ Mon Jul 6 22:50:48 1998 Jason Merrill <jason@yorick.cygnus.com>
Mon Jul 6 22:47:55 1998 J"orn Rennecke <amylaar@cygnus.co.uk>
* reload1.c (delete_dead_insn): Don't delete feeding insn
if that insn has side effects.
* flow.c (find_auto_inc): Clear UNCHANGING bit of register that is
changed.
......
......@@ -2449,7 +2449,8 @@ delete_dead_insn (insn)
if (prev && GET_CODE (PATTERN (prev)) == SET
&& (prev_dest = SET_DEST (PATTERN (prev)), GET_CODE (prev_dest) == REG)
&& reg_mentioned_p (prev_dest, PATTERN (insn))
&& find_regno_note (insn, REG_DEAD, REGNO (prev_dest)))
&& find_regno_note (insn, REG_DEAD, REGNO (prev_dest))
&& ! side_effects_p (SET_SRC (PATTERN (prev))))
delete_dead_insn (prev);
PUT_CODE (insn, NOTE);
......
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