Commit ebd7a7af by Kazu Hirata Committed by Kazu Hirata

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
parent 213d5fbc
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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment