diff --git a/gcc/ChangeLog b/gcc/ChangeLog index deac68c14e59..53b3a037b9a9 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-06-27 Kazu Hirata + + * gcse.c (expr_equiv_p): Replace expressions that are known to + be 0 with 0. + 2003-06-27 Kazu Hirata * cse.c (fold_rtx): Replace the equality comparison of INTVALs diff --git a/gcc/gcse.c b/gcc/gcse.c index 0ef03201a802..f2016f9fa2a8 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);