Commit d8090d46 by Richard Kenner

(expand_inline_function): Do copy something setting the result register if...

(expand_inline_function): Do copy something setting the result
register if it is setting it to itself and has a REG_NOTE.

From-SVN: r10383
parent 29d356fb
...@@ -1699,6 +1699,11 @@ expand_inline_function (fndecl, parms, target, ignore, type, structure_value_add ...@@ -1699,6 +1699,11 @@ expand_inline_function (fndecl, parms, target, ignore, type, structure_value_add
SET_DEST (new_set) SET_DEST (new_set)
= gen_reg_rtx (GET_MODE (SET_DEST (new_set))); = gen_reg_rtx (GET_MODE (SET_DEST (new_set)));
} }
/* If the source and destination are the same and it
has a note on it, keep the insn. */
else if (rtx_equal_p (SET_DEST (set), SET_SRC (set))
&& REG_NOTES (insn) != 0)
copy = emit_insn (copy_rtx_and_substitute (pattern, map));
else else
break; break;
} }
......
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