diff options
author | Jan Hubicka <jh@suse.cz> | 2005-07-15 11:46:17 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2005-07-15 09:46:17 +0000 |
commit | 2b151cb23b672323fea91892fcb1d2f41c410e78 (patch) | |
tree | e18b6fa79ab9456ec92957369f1b704294631166 /gcc/tree-ssa-threadupdate.c | |
parent | 0691d1d4a31ff0a426d2ba07c64acbac5df6b8ae (diff) | |
download | gcc-2b151cb23b672323fea91892fcb1d2f41c410e78.zip gcc-2b151cb23b672323fea91892fcb1d2f41c410e78.tar.gz gcc-2b151cb23b672323fea91892fcb1d2f41c410e78.tar.bz2 |
cfg.c (update_bb_profile_for_threading): More diagnostic.
* cfg.c (update_bb_profile_for_threading): More diagnostic.
* tree-ssa-threadupdate.c (redirect_edges): Update profile of dup_block.
From-SVN: r102053
Diffstat (limited to 'gcc/tree-ssa-threadupdate.c')
-rw-r--r-- | gcc/tree-ssa-threadupdate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c index a89a438..6181b27 100644 --- a/gcc/tree-ssa-threadupdate.c +++ b/gcc/tree-ssa-threadupdate.c @@ -609,6 +609,9 @@ redirect_edges (void **slot, void *data) fprintf (dump_file, " Threaded jump %d --> %d to %d\n", e->src->index, e->dest->index, rd->dup_block->index); + rd->dup_block->count += e->count; + rd->dup_block->frequency += EDGE_FREQUENCY (e); + EDGE_SUCC (rd->dup_block, 0)->count += e->count; /* Redirect the incoming edge to the appropriate duplicate block. */ e2 = redirect_edge_and_branch (e, rd->dup_block); |