OSDN Git Service

Not all VALUEs are identical
authorbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Aug 2001 16:26:01 +0000 (16:26 +0000)
committerbernds <bernds@138bc75d-0d04-0410-961f-82ee72b054a4>
Sun, 5 Aug 2001 16:26:01 +0000 (16:26 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@44645 138bc75d-0d04-0410-961f-82ee72b054a4

gcc/ChangeLog
gcc/alias.c

index 892b9a9..15b9b67 100644 (file)
@@ -1,8 +1,11 @@
 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
 
-        * doloop.c (doloop_modify_runtime): Properly compute number of
+       * doloop.c (doloop_modify_runtime): Properly compute number of
        iterations if loop was unrolled.
 
+       * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
+       if their CSELIB_VAL_PTRs are.
+
 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
 
        * config/sh/sh.c (sh_asm_named_section): Fix typo in align
index 1a28eb6..e741718 100644 (file)
@@ -1032,6 +1032,9 @@ rtx_equal_for_memref_p (x, y)
   /* Some RTL can be compared without a recursive examination.  */
   switch (code)
     {
+    case VALUE:
+      return CSELIB_VAL_PTR (x) == CSELIB_VAL_PTR (y);
+
     case REG:
       return REGNO (x) == REGNO (y);