Commit fabe6a9a by Eric Botcazou

re PR rtl-optimization/47698 (CMOV accessing volatile memory with read side effect)

	PR rtl-optimization/47698
	* ifcvt.c (noce_operand_ok): Move around comment.

From-SVN: r181161
parent a456676f
2011-11-08 Eric Botcazou <ebotcazou@adacore.com>
PR rtl-optimization/47698
* ifcvt.c (noce_operand_ok): Move around comment.
2011-11-08 Richard Guenther <rguenther@suse.de> 2011-11-08 Richard Guenther <rguenther@suse.de>
PR lto/50999 PR lto/50999
...@@ -479,7 +484,7 @@ ...@@ -479,7 +484,7 @@
2011-11-07 Sergey Ostanevich <sergos.gnu@gmail.com> 2011-11-07 Sergey Ostanevich <sergos.gnu@gmail.com>
PR rtl-optimization/47698 PR rtl-optimization/47698
* ifconv.c (noce_operand_ok): prevent CMOV generation for volatile mem. * ifcvt.c (noce_operand_ok): Return false for mems with side effects.
2011-11-07 Tristan Gingold <gingold@adacore.com> 2011-11-07 Tristan Gingold <gingold@adacore.com>
...@@ -2327,11 +2327,11 @@ noce_get_condition (rtx jump, rtx *earliest, bool then_else_reversed) ...@@ -2327,11 +2327,11 @@ noce_get_condition (rtx jump, rtx *earliest, bool then_else_reversed)
static int static int
noce_operand_ok (const_rtx op) noce_operand_ok (const_rtx op)
{ {
/* We special-case memories, so handle any of them with
no address side effects. */
if (side_effects_p (op)) if (side_effects_p (op))
return FALSE; return FALSE;
/* We special-case memories, so handle any of them with
no address side effects. */
if (MEM_P (op)) if (MEM_P (op))
return ! side_effects_p (XEXP (op, 0)); return ! side_effects_p (XEXP (op, 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