aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-dom.c
diff options
context:
space:
mode:
authorJan Hubicka <jh@suse.cz>2004-09-19 18:04:03 +0200
committerJan Hubicka <hubicka@gcc.gnu.org>2004-09-19 16:04:03 +0000
commit15db5571d1567a4d05812f85853b9b95766b8f2e (patch)
tree2864608d6a5ce3c527756be3a276cd609e29f91f /gcc/tree-ssa-dom.c
parent9714133875a19fcb1258b79d8c035d7a8d240d61 (diff)
downloadgcc-15db5571d1567a4d05812f85853b9b95766b8f2e.zip
gcc-15db5571d1567a4d05812f85853b9b95766b8f2e.tar.gz
gcc-15db5571d1567a4d05812f85853b9b95766b8f2e.tar.bz2
basic-block.h (update_bb_profile_after_threading): Declare.
* basic-block.h (update_bb_profile_after_threading): Declare. * cfg.c (update_bb_profile_after_threading): Break out from ... * cfgcleanup.c (try_forward_edges): ... here; use it. * tree-ssa-dom.c (thread_across_edge): Use it. * tree-ssa-threadupdate.c (create_block_for_threading): Zero out profile of the new BB. From-SVN: r87730
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r--gcc/tree-ssa-dom.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c
index b99f189..f285011 100644
--- a/gcc/tree-ssa-dom.c
+++ b/gcc/tree-ssa-dom.c
@@ -697,6 +697,8 @@ thread_across_edge (struct dom_walk_data *walk_data, edge e)
bypass the conditional at our original destination. */
if (dest)
{
+ update_bb_profile_for_threading (e->dest, EDGE_FREQUENCY (e),
+ e->count, taken_edge);
e->aux = taken_edge;
bb_ann (e->dest)->incoming_edge_threaded = true;
}