diff options
author | Eric Botcazou <ebotcazou@adacore.com> | 2010-10-18 16:44:38 +0000 |
---|---|---|
committer | Eric Botcazou <ebotcazou@gcc.gnu.org> | 2010-10-18 16:44:38 +0000 |
commit | 30fd588162ce3286f388ae2f0e09a7a3637a9a23 (patch) | |
tree | 2ecd4af9e1a66174ac094a1e2068124b1cca40a7 /gcc/tree-inline.c | |
parent | 84628aa83614d863abb3a6c04f14e1b9bdd8d6aa (diff) | |
download | gcc-30fd588162ce3286f388ae2f0e09a7a3637a9a23.zip gcc-30fd588162ce3286f388ae2f0e09a7a3637a9a23.tar.gz gcc-30fd588162ce3286f388ae2f0e09a7a3637a9a23.tar.bz2 |
tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
* tree-flow.h (gimple_purge_all_dead_abnormal_call_edges): Declare.
* tree-cfg.c (gimple_purge_dead_abnormal_call_edges): Move around and
rewrite modelled on gimple_purge_dead_eh_edges.
(gimple_purge_all_dead_abnormal_call_edges): New function.
* tree-inline.c (expand_call_inline): Call gimple_purge_dead_eh_edges
directly instead of through gimple_purge_dead_abnormal_call_edges.
* tree-ssa-pre.c (need_ab_cleanup): New static variable.
(eliminate): Set bit in need_ab_cleanup for the basic block if we have
removed AB side-effects from one of its statements.
(init_pre): Initialize need_ab_cleanup.
(fini_pre): Purge dead abnormal call edges and clean up the CFG if bits
are set in need_ab_cleanup. Free need_ab_cleanup afterward.
From-SVN: r165646
Diffstat (limited to 'gcc/tree-inline.c')
-rw-r--r-- | gcc/tree-inline.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c index 5aa7bb0..133d916 100644 --- a/gcc/tree-inline.c +++ b/gcc/tree-inline.c @@ -4010,7 +4010,10 @@ expand_call_inline (basic_block bb, gimple stmt, copy_body_data *id) } if (purge_dead_abnormal_edges) - gimple_purge_dead_abnormal_call_edges (return_block); + { + gimple_purge_dead_eh_edges (return_block); + gimple_purge_dead_abnormal_call_edges (return_block); + } /* If the value of the new expression is ignored, that's OK. We don't warn about this for CALL_EXPRs, so we shouldn't warn about |