Commit 2b979c57 by Richard Kenner

(reload, reload_as_needed): Check for use of return register with

reg_referenced_p, not reg_mentioned_p.

From-SVN: r7208
parent b4f1aa7a
......@@ -969,7 +969,7 @@ reload (first, global, dumpfile)
&& !(GET_CODE (PATTERN (insn)) == SET
&& SET_DEST (PATTERN (insn)) == stack_pointer_rtx))
{
if (reg_mentioned_p (after_call, PATTERN (insn)))
if (reg_referenced_p (after_call, PATTERN (insn)))
avoid_return_reg = after_call;
after_call = 0;
}
......@@ -3681,7 +3681,7 @@ reload_as_needed (first, live_known)
&& !(GET_CODE (PATTERN (insn)) == SET
&& SET_DEST (PATTERN (insn)) == stack_pointer_rtx))
{
if (reg_mentioned_p (after_call, PATTERN (insn)))
if (reg_referenced_p (after_call, PATTERN (insn)))
avoid_return_reg = after_call;
after_call = 0;
}
......
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