Commit 9fac9680 by Richard Kenner

(find_equiv_reg): If goal is a pseudo that got memory, a store into

memory makes it invalid.

From-SVN: r9344
parent 0f5cddbd
...@@ -5553,6 +5553,9 @@ find_equiv_reg (goal, insn, class, other, reload_reg_p, goalreg, mode) ...@@ -5553,6 +5553,9 @@ find_equiv_reg (goal, insn, class, other, reload_reg_p, goalreg, mode)
else if (goal_mem && GET_CODE (dest) == MEM else if (goal_mem && GET_CODE (dest) == MEM
&& ! push_operand (dest, GET_MODE (dest))) && ! push_operand (dest, GET_MODE (dest)))
return 0; return 0;
else if (GET_CODE (dest) == MEM && regno >= FIRST_PSEUDO_REGISTER
&& reg_equiv_memory_loc[regno] != 0)
return 0;
else if (need_stable_sp && push_operand (dest, GET_MODE (dest))) else if (need_stable_sp && push_operand (dest, GET_MODE (dest)))
return 0; return 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