Commit bad998e0 by Zdenek Dvorak Committed by Zdenek Dvorak

gcse.c (expr_equiv_p): Don't consider anything to be equal to volatile mem.

	* gcse.c (expr_equiv_p): Don't consider anything to be equal to
	volatile mem.

From-SVN: r71140
parent 34ff2673
2003-09-06 Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
* gcse.c (expr_equiv_p): Don't consider anything to be equal to
volatile mem.
2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> 2003-09-06 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
* ggc-common.c (init_ggc_heuristics): Don't use the heuristics * ggc-common.c (init_ggc_heuristics): Don't use the heuristics
......
...@@ -1787,6 +1787,10 @@ expr_equiv_p (rtx x, rtx y) ...@@ -1787,6 +1787,10 @@ expr_equiv_p (rtx x, rtx y)
due to it being set with the different alias set. */ due to it being set with the different alias set. */
if (MEM_ALIAS_SET (x) != MEM_ALIAS_SET (y)) if (MEM_ALIAS_SET (x) != MEM_ALIAS_SET (y))
return 0; return 0;
/* A volatile mem should not be considered equivalent to any other. */
if (MEM_VOLATILE_P (x) || MEM_VOLATILE_P (y))
return 0;
break; break;
/* For commutative operations, check both orders. */ /* For commutative operations, check both orders. */
......
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