aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-sccvn.c
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2012-01-09 14:06:31 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2012-01-09 14:06:31 +0000
commit0646822981305e0ffc3f8e0aadc4dfd0bc098330 (patch)
tree08b0129c03278f0e05ec4fa8bd1ed08aa3472e1b /gcc/tree-ssa-sccvn.c
parent12aa62e921a3a26ab78b3be5ff10269c3e856288 (diff)
downloadgcc-0646822981305e0ffc3f8e0aadc4dfd0bc098330.zip
gcc-0646822981305e0ffc3f8e0aadc4dfd0bc098330.tar.gz
gcc-0646822981305e0ffc3f8e0aadc4dfd0bc098330.tar.bz2
re PR tree-optimization/51775 (FAIL: gnat.dg/pack9.adb scan-tree-dump-not optimized "gnat_rcheck")
2012-01-09 Richard Guenther <rguenther@suse.de> PR tree-optimization/51775 * tree-ssa-sccvn.c (visit_use): Value-number throwing stmts. * tree-ssa-pre.c (eliminate): Properly fixup EH info. From-SVN: r183012
Diffstat (limited to 'gcc/tree-ssa-sccvn.c')
-rw-r--r--gcc/tree-ssa-sccvn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/gcc/tree-ssa-sccvn.c b/gcc/tree-ssa-sccvn.c
index 9adf3ec..ca11ca1 100644
--- a/gcc/tree-ssa-sccvn.c
+++ b/gcc/tree-ssa-sccvn.c
@@ -3178,8 +3178,7 @@ visit_use (tree use)
if (gimple_code (stmt) == GIMPLE_PHI)
changed = visit_phi (stmt);
else if (!gimple_has_lhs (stmt)
- || gimple_has_volatile_ops (stmt)
- || stmt_could_throw_p (stmt))
+ || gimple_has_volatile_ops (stmt))
changed = defs_to_varying (stmt);
else if (is_gimple_assign (stmt))
{