diff options
author | Kazu Hirata <kazu@cs.umass.edu> | 2003-06-27 19:38:27 +0000 |
---|---|---|
committer | Kazu Hirata <kazu@gcc.gnu.org> | 2003-06-27 19:38:27 +0000 |
commit | ebd7a7af832b48e9b6d08acd5e493c7ae9cbbde2 (patch) | |
tree | 4079ef78f7a31639af2f990c75d267aedc1ce107 | |
parent | 213d5fbccbbb6984ac7eea7c85d9e5a36b05cf74 (diff) | |
download | gcc-ebd7a7af832b48e9b6d08acd5e493c7ae9cbbde2.zip gcc-ebd7a7af832b48e9b6d08acd5e493c7ae9cbbde2.tar.gz gcc-ebd7a7af832b48e9b6d08acd5e493c7ae9cbbde2.tar.bz2 |
gcse.c (expr_equiv_p): Replace expressions that are known to be 0 with 0.
* gcse.c (expr_equiv_p): Replace expressions that are known to
be 0 with 0.
From-SVN: r68601
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/gcse.c | 6 |
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. @@ -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); |