From c3a50ca3a820618098bbcc991d5d3a38764933f0 Mon Sep 17 00:00:00 2001 From: Richard Sandiford Date: Sun, 9 Apr 2006 10:06:20 +0000 Subject: re PR rtl-optimization/27073 (invalid gcse manipulation of REG_EQUIV notes) PR rtl-optimization/27073 * gcse.c (try_replace_reg): Just propagate into REG_EQUAL notes, not REG_EQUIVs. gcc/testsuite/ * gcc.c-torture/execute/pr27073.c: New test. From-SVN: r112803 --- gcc/gcse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gcc/gcse.c') diff --git a/gcc/gcse.c b/gcc/gcse.c index f0e25a2..0dbbe0b 100644 --- a/gcc/gcse.c +++ b/gcc/gcse.c @@ -2642,7 +2642,7 @@ find_used_regs (rtx *xptr, void *data ATTRIBUTE_UNUSED) static int try_replace_reg (rtx from, rtx to, rtx insn) { - rtx note = find_reg_equal_equiv_note (insn); + rtx note = find_reg_note (insn, REG_EQUAL, NULL); rtx src = 0; int success = 0; rtx set = single_set (insn); -- cgit v1.1