aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Kenner <kenner@gcc.gnu.org>1996-01-15 07:22:46 -0500
committerRichard Kenner <kenner@gcc.gnu.org>1996-01-15 07:22:46 -0500
commitbd5f6d441a61660e8f22529802c81671922fc41b (patch)
treed2f4a472e28b67cafdd284f1642e670b020c5948 /gcc
parent2142b2d5d6ec1b285104837359328e67f5323cc1 (diff)
downloadgcc-bd5f6d441a61660e8f22529802c81671922fc41b.zip
gcc-bd5f6d441a61660e8f22529802c81671922fc41b.tar.gz
gcc-bd5f6d441a61660e8f22529802c81671922fc41b.tar.bz2
(find_equiv_reg): Apply single_set, not PATTERN, to WHERE.
From-SVN: r10981
Diffstat (limited to 'gcc')
-rw-r--r--gcc/reload.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/reload.c b/gcc/reload.c
index 3e8e8d2..6676eeb 100644
--- a/gcc/reload.c
+++ b/gcc/reload.c
@@ -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)),