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

memory makes it invalid.

From-SVN: r9344
This commit is contained in:
Richard Kenner 1995-04-10 07:16:13 -04:00
parent 0f5cddbdd1
commit 9fac9680c0
1 changed files with 3 additions and 0 deletions

View File

@ -5553,6 +5553,9 @@ find_equiv_reg (goal, insn, class, other, reload_reg_p, goalreg, mode)
else if (goal_mem && GET_CODE (dest) == MEM
&& ! push_operand (dest, GET_MODE (dest)))
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)))
return 0;
}