mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-10 03:34:32 +08:00
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
This commit is contained in:
parent
213d5fbccb
commit
ebd7a7af83
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user