aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKazu Hirata <kazu@cs.umass.edu>2003-06-27 19:36:38 +0000
committerKazu Hirata <kazu@gcc.gnu.org>2003-06-27 19:36:38 +0000
commit213d5fbccbbb6984ac7eea7c85d9e5a36b05cf74 (patch)
treee6deb6cc654411c9cbc45a0da7787d739e579699
parent9df4f939997637f15be017fb90de393a2df65120 (diff)
downloadgcc-213d5fbccbbb6984ac7eea7c85d9e5a36b05cf74.zip
gcc-213d5fbccbbb6984ac7eea7c85d9e5a36b05cf74.tar.gz
gcc-213d5fbccbbb6984ac7eea7c85d9e5a36b05cf74.tar.bz2
cse.c (fold_rtx): Replace the equality comparison of INTVALs with a pointer equality comparison.
* cse.c (fold_rtx): Replace the equality comparison of INTVALs with a pointer equality comparison. From-SVN: r68600
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/cse.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 0167bf6..deac68c 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
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
are known to be not equivalent.
diff --git a/gcc/cse.c b/gcc/cse.c
index a061817..2394203 100644
--- 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