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:
Kazu Hirata 2003-06-27 19:38:27 +00:00 committed by Kazu Hirata
parent 213d5fbccb
commit ebd7a7af83
2 changed files with 7 additions and 4 deletions

View File

@ -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

View File

@ -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);