Commit 63a73071 by David Li Committed by Xinliang David Li

Fix a bug in cfg fixup

From-SVN: r177313
parent 90037898
2011-08-03 David Li <davidxl@google.com>
* tree-optimize.c (execute_fixup_cfg): Fix up entry
outgoing edge counts after inlining.
2011-08-03 David Li <davidxl@google.com>
* profile.c (compute_branch_probabilities): Compute
function frequency after profile annotation.
......
......@@ -256,6 +256,10 @@ execute_fixup_cfg (void)
EXIT_BLOCK_PTR->count = (EXIT_BLOCK_PTR->count * count_scale
+ REG_BR_PROB_BASE / 2) / REG_BR_PROB_BASE;
FOR_EACH_EDGE (e, ei, ENTRY_BLOCK_PTR->succs)
e->count = (e->count * count_scale
+ REG_BR_PROB_BASE / 2) / REG_BR_PROB_BASE;
FOR_EACH_BB (bb)
{
bb->count = (bb->count * count_scale
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment