Commit d1e37dc7 by Richard Stallman

(fixup_var_refs_insns): Don't delete an insn copying

var to itself, if it's the end of a libcall group.

From-SVN: r3873
parent 3615587a
...@@ -1012,6 +1012,9 @@ fixup_var_refs_insns (var, promoted_mode, unsignedp, insn, toplevel) ...@@ -1012,6 +1012,9 @@ fixup_var_refs_insns (var, promoted_mode, unsignedp, insn, toplevel)
if (toplevel if (toplevel
&& GET_CODE (PATTERN (insn)) == SET && GET_CODE (PATTERN (insn)) == SET
&& SET_DEST (PATTERN (insn)) == var && SET_DEST (PATTERN (insn)) == var
/* If this represents the result of an insn group,
don't delete the insn. */
&& find_reg_note (insn, REG_RETVAL, NULL_RTX) == 0
&& rtx_equal_p (SET_SRC (PATTERN (insn)), var)) && rtx_equal_p (SET_SRC (PATTERN (insn)), var))
{ {
/* In unoptimized compilation, we shouldn't call delete_insn /* In unoptimized compilation, we shouldn't call delete_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