aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/gcse.c6
2 files changed, 7 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index deac68c..53b3a03 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,5 +1,10 @@
2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
+ * gcse.c (expr_equiv_p): Replace expressions that are known to
+ be 0 with 0.
+
+2003-06-27 Kazu Hirata <kazu@cs.umass.edu>
+
* cse.c (fold_rtx): Replace the equality comparison of INTVALs
with a pointer equality comparison.
diff --git a/gcc/gcse.c b/gcc/gcse.c
index 0ef0320..f2016f9 100644
--- a/gcc/gcse.c
+++ b/gcc/gcse.c
@@ -1818,7 +1818,7 @@ expr_equiv_p (x, y)
return 1;
if (x == 0 || y == 0)
- return x == y;
+ return 0;
code = GET_CODE (x);
if (code != GET_CODE (y))
@@ -1832,10 +1832,8 @@ expr_equiv_p (x, y)
{
case PC:
case CC0:
- return x == y;
-
case CONST_INT:
- return INTVAL (x) == INTVAL (y);
+ return 0;
case LABEL_REF:
return XEXP (x, 0) == XEXP (y, 0);