]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR rtl-optimization/47698 (CMOV accessing volatile memory with read side effect)
authorEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 8 Nov 2011 13:44:11 +0000 (13:44 +0000)
committerEric Botcazou <ebotcazou@gcc.gnu.org>
Tue, 8 Nov 2011 13:44:11 +0000 (13:44 +0000)
PR rtl-optimization/47698
* ifcvt.c (noce_operand_ok): Move around comment.

From-SVN: r181161

gcc/ChangeLog
gcc/ifcvt.c

index 6c92689892c3fcb330e9bede2d13874bd0c68bed..e5050e1248b618ef7d6492ef83fcd05fa2c72475 100644 (file)
@@ -1,3 +1,8 @@
+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>
 
        PR lto/50999
 2011-11-07  Sergey Ostanevich  <sergos.gnu@gmail.com>
 
        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>
 
index 3b05c2a8ad870d761566c153dab029b746a933b0..e8fa0bd0fb99fb30b1c5d36b8e4f64b9226ea3e5 100644 (file)
@@ -2327,11 +2327,11 @@ noce_get_condition (rtx jump, rtx *earliest, bool then_else_reversed)
 static int
 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))
     return FALSE;
 
+  /* We special-case memories, so handle any of them with
+     no address side effects.  */
   if (MEM_P (op))
     return ! side_effects_p (XEXP (op, 0));