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> 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 * cse.c (fold_rtx): Replace the equality comparison of INTVALs
with a pointer equality comparison. with a pointer equality comparison.
......
...@@ -1818,7 +1818,7 @@ expr_equiv_p (x, y) ...@@ -1818,7 +1818,7 @@ expr_equiv_p (x, y)
return 1; return 1;
if (x == 0 || y == 0) if (x == 0 || y == 0)
return x == y; return 0;
code = GET_CODE (x); code = GET_CODE (x);
if (code != GET_CODE (y)) if (code != GET_CODE (y))
...@@ -1832,10 +1832,8 @@ expr_equiv_p (x, y) ...@@ -1832,10 +1832,8 @@ expr_equiv_p (x, y)
{ {
case PC: case PC:
case CC0: case CC0:
return x == y;
case CONST_INT: case CONST_INT:
return INTVAL (x) == INTVAL (y); return 0;
case LABEL_REF: case LABEL_REF:
return XEXP (x, 0) == XEXP (y, 0); 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