]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
simplify-rtx.c (simplify_replace_rtx): Do not blindly replace hard registers.
authorRichard Henderson <rth@redhat.com>
Thu, 16 Dec 2004 19:19:04 +0000 (11:19 -0800)
committerAldy Hernandez <aldyh@gcc.gnu.org>
Thu, 16 Dec 2004 19:19:04 +0000 (19:19 +0000)
* simplify-rtx.c (simplify_replace_rtx): Do not blindly replace
hard registers.

[[Split portion of a mixed commit.]]

Co-Authored-By: Aldy Hernandez <aldyh@redhat.com>
From-SVN: r92278.2

gcc/ChangeLog
gcc/simplify-rtx.c

index b5afd17404e03b02b031b643334d9a0a34f35eea..24d534b4d0d492828c8bd398991df8ee0ed4a7fc 100644 (file)
@@ -1,3 +1,9 @@
+2004-12-16  Richard Henderson  <rth@redhat.com>
+           Aldy Hernandez  <aldyh@redhat.com>
+
+       * simplify-rtx.c (simplify_replace_rtx): Do not blindly replace
+       hard registers.
+
 2004-12-16  H.J. Lu  <hongjiu.lu@intel.com>
 
        PR other/18508
index 3685bbf8d2c954631fea45ad95bea3cdec0dc594..5feeb650dc97f5ca9c0a492f8dbd4abd69dde529 100644 (file)
@@ -337,7 +337,7 @@ simplify_replace_rtx (rtx x, rtx old_rtx, rtx new_rtx)
        }
       else if (code == REG)
        {
-         if (REG_P (old_rtx) && REGNO (x) == REGNO (old_rtx))
+         if (rtx_equal_p (x, old_rtx))
            return new_rtx;
        }
       break;