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 | |
parent | e02222d2e72e1eeafe143e704b0ea6fa3ef10bfb (diff) | |
download | gcc-659ad88e5ff3676400c9bddfb0d1b3854f4581bb.zip gcc-659ad88e5ff3676400c9bddfb0d1b3854f4581bb.tar.gz gcc-659ad88e5ff3676400c9bddfb0d1b3854f4581bb.tar.bz2 |
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')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/value-prof.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cb90da6..634c4cc 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2009-09-23 Richard Guenther <rguenther@suse.de> + + * value-prof.c (gimple_ic): Purge old EH edges only after building + the new ones. + 2009-09-23 Nick Clifton <nickc@redhat.com> * config/arc/arc.c (arc_trampoline_init): Fix typo. diff --git a/gcc/value-prof.c b/gcc/value-prof.c index 12f1ecc..1da60e1 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; |