reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way we use REG_EQUAL.
authorBernd Schmidt <bernd.schmidt@analog.com>
Tue, 17 Apr 2007 22:35:47 +0000 (22:35 +0000)
committerBernd Schmidt <bernds@gcc.gnu.org>
Tue, 17 Apr 2007 22:35:47 +0000 (22:35 +0000)
* reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
we use REG_EQUAL.

From-SVN: r123932

gcc/ChangeLog
gcc/reload1.c

index 1cb2c2c..59b83cf 100644 (file)
@@ -1,3 +1,8 @@
+2007-04-18  Bernd Schmidt  <bernd.schmidt@analog.com>
+
+       * reload1.c (eliminte_regs_in_insn): Use REG_EQUIV notes the same way
+       we use REG_EQUAL.
+
 2007-04-17  Anatoly Sokolov <aesok@post.ru>
 
        PR target/30483
index 8c698ef..f29f079 100644 (file)
@@ -3101,7 +3101,8 @@ eliminate_regs_in_insn (rtx insn, int replace)
          rtx links;
          for (links = REG_NOTES (insn); links; links = XEXP (links, 1))
            {
-             if (REG_NOTE_KIND (links) == REG_EQUAL
+             if ((REG_NOTE_KIND (links) == REG_EQUAL
+                  || REG_NOTE_KIND (links) == REG_EQUIV)
                  && GET_CODE (XEXP (links, 0)) == PLUS
                  && GET_CODE (XEXP (XEXP (links, 0), 1)) == CONST_INT)
                {