diff options
author | Richard Guenther <rguenther@suse.de> | 2012-04-05 09:43:48 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2012-04-05 09:43:48 +0000 |
commit | b5b3ec3e6ebe5b7a07654d94f53f97b0a8cca050 (patch) | |
tree | 6258ff245914afce423859c9d6e66227cf605076 /gcc/tree-ssa-dse.c | |
parent | 4e48b6f14dd57f48d042ebc3a47529963da69fdf (diff) | |
download | gcc-b5b3ec3e6ebe5b7a07654d94f53f97b0a8cca050.zip gcc-b5b3ec3e6ebe5b7a07654d94f53f97b0a8cca050.tar.gz gcc-b5b3ec3e6ebe5b7a07654d94f53f97b0a8cca050.tar.bz2 |
gimple-iterator.c (gsi_remove): Return whether EH edges need to be cleanup.
2012-04-05 Richard Guenther <rguenther@suse.de>
* gimple-iterator.c (gsi_remove): Return whether EH edges need to be
cleanup.
* gimple.h (gsi_remove): Adjust.
* tree-ssa-operands.c (unlink_stmt_vdef): Optimize.
* tree-ssa-dom.c (optimize_stmt): Use gsi_remove result.
* tree-ssa-dse.c (dse_optimize_stmt): Likewise.
* tree-ssa-forwprop.c (remove_prop_source_from_use): Likewise.
* tree-ssa-math-opts.c (execute_optimize_widening_mul): Likewise.
* tree-ssa-pre.c (eliminate): Likewise.
From-SVN: r186159
Diffstat (limited to 'gcc/tree-ssa-dse.c')
-rw-r--r-- | gcc/tree-ssa-dse.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index 285d08c..93ba425 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -257,10 +257,9 @@ dse_optimize_stmt (gimple_stmt_iterator gsi) /* Then we need to fix the operand of the consuming stmt. */ unlink_stmt_vdef (stmt); - bitmap_set_bit (need_eh_cleanup, gimple_bb (stmt)->index); - /* Remove the dead store. */ - gsi_remove (&gsi, true); + if (gsi_remove (&gsi, true)) + bitmap_set_bit (need_eh_cleanup, gimple_bb (stmt)->index); /* And release any SSA_NAMEs set in this statement back to the SSA_NAME manager. */ |