(find_equiv_reg): Apply single_set, not PATTERN, to WHERE.

From-SVN: r10981
This commit is contained in:
Richard Kenner 1996-01-15 07:22:46 -05:00
parent 2142b2d5d6
commit bd5f6d441a
1 changed files with 2 additions and 2 deletions

View File

@ -1,5 +1,5 @@
/* Search an insn for pseudo regs that must be in hard regs and are not.
Copyright (C) 1987, 88, 89, 92, 93, 94, 1995 Free Software Foundation, Inc.
Copyright (C) 1987, 88, 89, 92-5, 1996 Free Software Foundation, Inc.
This file is part of GNU CC.
@ -5558,7 +5558,7 @@ find_equiv_reg (goal, insn, class, other, reload_reg_p, goalreg, mode)
/* Reject VALUE if it was loaded from GOAL
and is also a register that appears in the address of GOAL. */
if (goal_mem && value == SET_DEST (PATTERN (where))
if (goal_mem && value == SET_DEST (single_set (where))
&& refers_to_regno_for_reload_p (valueno,
(valueno
+ HARD_REGNO_NREGS (valueno, mode)),