aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ifcombine.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-05-18 13:33:21 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-05-18 13:33:21 +0000
commit179184e3e58fdf0334e255600022f93d20f5eed7 (patch)
tree7bb48622e83ba6ee867af98f7b86d6ffdc4a9d58 /gcc/tree-ssa-ifcombine.c
parent93b2a207a64567029fcb6e7543fb25bbc00feb19 (diff)
downloadgcc-179184e3e58fdf0334e255600022f93d20f5eed7.zip
gcc-179184e3e58fdf0334e255600022f93d20f5eed7.tar.gz
gcc-179184e3e58fdf0334e255600022f93d20f5eed7.tar.bz2
re PR tree-optimization/49018 (Inline assembly block executed outside conditional check with "-O1 -ftree-vrp")
2011-05-18 Richard Guenther <rguenther@suse.de> PR tree-optimization/49018 * gimple.c (gimple_has_side_effects): Volatile asms have side-effects. * tree-ssa-ifcombine.c (bb_no_side_effects_p): Use gimple_has_side_effects. From-SVN: r173861
Diffstat (limited to 'gcc/tree-ssa-ifcombine.c')
-rw-r--r--gcc/tree-ssa-ifcombine.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/tree-ssa-ifcombine.c b/gcc/tree-ssa-ifcombine.c
index bc551b2..e23bb76 100644
--- a/gcc/tree-ssa-ifcombine.c
+++ b/gcc/tree-ssa-ifcombine.c
@@ -107,7 +107,7 @@ bb_no_side_effects_p (basic_block bb)
{
gimple stmt = gsi_stmt (gsi);
- if (gimple_has_volatile_ops (stmt)
+ if (gimple_has_side_effects (stmt)
|| gimple_vuse (stmt))
return false;
}