diff options
author | Richard Guenther <rguenther@suse.de> | 2009-09-23 15:29:22 +0000 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2009-09-23 15:29:22 +0000 |
commit | 659ad88e5ff3676400c9bddfb0d1b3854f4581bb (patch) | |
tree | 9fba9963d64ca4398cb3040ddc82c9b3443a721f /gcc/value-prof.c | |
parent | e02222d2e72e1eeafe143e704b0ea6fa3ef10bfb (diff) | |
download | gcc-659ad88e5ff3676400c9bddfb0d1b3854f4581bb.tar.gz |
value-prof.c (gimple_ic): Purge old EH edges only after building the new ones.
2009-09-23 Richard Guenther <rguenther@suse.de>
* value-prof.c (gimple_ic): Purge old EH edges only after building
the new ones.
From-SVN: r152082
Diffstat (limited to 'gcc/value-prof.c')
-rw-r--r-- | gcc/value-prof.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 12f1ecc5962..1da60e1a02a 100644 --- a/gcc/value-prof.c +++ b/gcc/value-prof.c @@ -1154,8 +1154,6 @@ gimple_ic (gimple icall_stmt, struct cgraph_node *direct_call, lp_nr = lookup_stmt_eh_lp (icall_stmt); if (lp_nr != 0) { - gimple_purge_dead_eh_edges (join_bb); - if (stmt_could_throw_p (dcall_stmt)) { add_stmt_to_eh_lp (dcall_stmt, lp_nr); @@ -1164,6 +1162,9 @@ gimple_ic (gimple icall_stmt, struct cgraph_node *direct_call, gcc_assert (stmt_could_throw_p (icall_stmt)); make_eh_edges (icall_stmt); + + /* The old EH edges are sill on the join BB, purge them. */ + gimple_purge_dead_eh_edges (join_bb); } return dcall_stmt; |