summaryrefslogtreecommitdiffstats
path: root/gcc/tree-ssa-ccp.c
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-16 23:14:02 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2005-05-16 23:14:02 +0000
commit4c27dd459452e4fd7d2821cc60813ba8ed6d3d8c (patch)
tree33124791d9f4d0376ee20ed1b477125f15b3b1d3 /gcc/tree-ssa-ccp.c
parent25c55cb426b20d337f1e7bb5ed83b3ec6b99fdb0 (diff)
downloadppe42-gcc-4c27dd459452e4fd7d2821cc60813ba8ed6d3d8c.tar.gz
ppe42-gcc-4c27dd459452e4fd7d2821cc60813ba8ed6d3d8c.zip
PR tree-opt/21399
* tree-eh.c (maybe_clean_or_replace_eh_stmt): Rename from maybe_clean_eh_stmt; take old stmt parameter. Update EH region data structure to match replacement. * tree-flow.h: Update to match. * tree-ssa-ccp.c (execute_fold_all_builtins): Likewise. * tree-ssa-dom.c (optimize_stmt): Likewise. * tree-ssa-pre.c (eliminate): Likewise. * tree-ssa-propagate.c (substitute_and_fold): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@99801 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-ccp.c')
-rw-r--r--gcc/tree-ssa-ccp.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c
index 58b8c2c01be..85753bdd764 100644
--- a/gcc/tree-ssa-ccp.c
+++ b/gcc/tree-ssa-ccp.c
@@ -2355,6 +2355,7 @@ execute_fold_all_builtins (void)
for (i = bsi_start (bb); !bsi_end_p (i); bsi_next (&i))
{
tree *stmtp = bsi_stmt_ptr (i);
+ tree old_stmt = *stmtp;
tree call = get_rhs (*stmtp);
tree callee, result;
@@ -2396,7 +2397,7 @@ execute_fold_all_builtins (void)
}
}
update_stmt (*stmtp);
- if (maybe_clean_eh_stmt (*stmtp)
+ if (maybe_clean_or_replace_eh_stmt (old_stmt, *stmtp)
&& tree_purge_dead_eh_edges (bb))
cfg_changed = true;
OpenPOWER on IntegriCloud