Commit d008e26c by Richard Kenner

(jump_optimize): Don't delete dead insn if it has a REG_RETVAL note.

From-SVN: r7458
parent 1bc61c04
...@@ -550,7 +550,8 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan) ...@@ -550,7 +550,8 @@ jump_optimize (f, cross_jump, noop_moves, after_regscan)
of a reg that's used in notes. A subsequent optimization of a reg that's used in notes. A subsequent optimization
might arrange to use that reg for real. */ might arrange to use that reg for real. */
&& regno_last_note_uid[REGNO (SET_DEST (set))] == INSN_UID (insn) && regno_last_note_uid[REGNO (SET_DEST (set))] == INSN_UID (insn)
&& ! side_effects_p (SET_SRC (set))) && ! side_effects_p (SET_SRC (set))
&& ! find_reg_note (insn, REG_RETVAL, 0))
delete_insn (insn); delete_insn (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