]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
cse.c (fold_rtx): Replace the equality comparison of INTVALs with a pointer equality...
authorKazu Hirata <kazu@cs.umass.edu>
Fri, 27 Jun 2003 19:36:38 +0000 (19:36 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Fri, 27 Jun 2003 19:36:38 +0000 (19:36 +0000)
* cse.c (fold_rtx): Replace the equality comparison of INTVALs
with a pointer equality comparison.

From-SVN: r68600

gcc/ChangeLog
gcc/cse.c

index 0167bf64e461efb39507589c5c78c2d8fa87bf58..deac68c14e5973b910c2867a96f399d799f9ba19 100644 (file)
@@ -1,3 +1,8 @@
+2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
+
+       * cse.c (fold_rtx): Replace the equality comparison of INTVALs
+       with a pointer equality comparison.
+
 2003-06-27  Kazu Hirata  <kazu@cs.umass.edu>
 
        * rtlanal.c (reg_mentioned_p): Return 0 earlier if REG and IN
index a061817a3f1f9377e56f80b000a671c14b46331f..23942034e1792897d648020ae3eb0d6d7cb2e33c 100644 (file)
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -4219,7 +4219,7 @@ fold_rtx (x, insn)
                 with a pre- or post-increment.  Similarly for two subtracts of
                 identical powers of two with post decrement.  */
 
-             if (code == PLUS && INTVAL (const_arg1) == INTVAL (inner_const)
+             if (code == PLUS && const_arg1 == inner_const
                  && ((HAVE_PRE_INCREMENT
                          && exact_log2 (INTVAL (const_arg1)) >= 0)
                      || (HAVE_POST_INCREMENT