aboutsummaryrefslogtreecommitdiff
path: root/gcc/ifcvt.c
diff options
context:
space:
mode:
authorEric Botcazou <ebotcazou@gcc.gnu.org>2011-11-08 13:44:11 +0000
committerEric Botcazou <ebotcazou@gcc.gnu.org>2011-11-08 13:44:11 +0000
commitfabe6a9a7a3154b2d03c7584847a48299ca1f042 (patch)
tree49c12e8bcc3089aaeedda91d8c4f1c446b8c301b /gcc/ifcvt.c
parenta456676fbc49400e55342117b19db664b94a7906 (diff)
downloadgcc-fabe6a9a7a3154b2d03c7584847a48299ca1f042.zip
gcc-fabe6a9a7a3154b2d03c7584847a48299ca1f042.tar.gz
gcc-fabe6a9a7a3154b2d03c7584847a48299ca1f042.tar.bz2
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
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r--gcc/ifcvt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index 3b05c2a..e8fa0bd 100644
--- a/gcc/ifcvt.c
+++ b/gcc/ifcvt.c
@@ -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));