diff options
author | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-27 19:38:27 +0000 |
---|---|---|
committer | kazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4> | 2003-06-27 19:38:27 +0000 |
commit | 23ff750f2b0494487ee424d047486fd73e264bc4 (patch) | |
tree | 4079ef78f7a31639af2f990c75d267aedc1ce107 /gcc/gcse.c | |
parent | 9cae6d485f062a097575457e971bd0fb80293975 (diff) | |
download | gcc-23ff750f2b0494487ee424d047486fd73e264bc4.tar.gz |
* gcse.c (expr_equiv_p): Replace expressions that are known to
be 0 with 0.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@68601 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gcse.c')
-rw-r--r-- | gcc/gcse.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/gcse.c b/gcc/gcse.c index 0ef03201a80..f2016f9fa2a 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); |