local-alloc.c (update_equiv_regs): Check the correct insn for pre-existing REG_EQUIV...
authorJeffrey A Law <law@cygnus.com>
Thu, 21 Oct 1999 05:01:02 +0000 (05:01 +0000)
committerJeff Law <law@gcc.gnu.org>
Thu, 21 Oct 1999 05:01:02 +0000 (23:01 -0600)
        * local-alloc.c (update_equiv_regs): Check the correct insn
        for pre-existing REG_EQUIV notes.

From-SVN: r30111

gcc/ChangeLog
gcc/local-alloc.c

index 5bfc2710a477c3b961f11f03b0cf2f9d8dee18c1..badba0463b1ce17c5b244636d9f4b143fac04fcf 100644 (file)
@@ -1,3 +1,8 @@
+Wed Oct 20 22:57:58 1999  Jeffrey A Law  (law@cygnus.com)
+
+       * local-alloc.c (update_equiv_regs): Check the correct insn
+       for pre-existing REG_EQUIV notes.
+
 Wed Oct 20 20:41:46 1999  Mark Mitchell  <mark@codesourcery.com>
 
        * cse.c (cse_end_of_basic_block): Don't return the end of a basic
index 8191ce0eaf8161fd3e012207f9842810a494eacd..b45f339e0fd2b237a62559684fc3317f3e82fab5 100644 (file)
@@ -761,7 +761,8 @@ update_equiv_regs ()
          && REG_N_SETS (regno) == 1
          && reg_equiv_init_insns[regno] != 0
          && reg_equiv_init_insns[regno] != const0_rtx
-         && ! find_reg_note (insn, REG_EQUIV, NULL_RTX)
+         && ! find_reg_note (XEXP (reg_equiv_init_insns[regno], 0),
+                             REG_EQUIV, NULL_RTX)
          && ! contains_replace_regs (XEXP (dest, 0), reg_equiv_replace))
        {
          rtx init_insn = XEXP (reg_equiv_init_insns[regno], 0);