Fix a bug in cfg fixup

From-SVN: r177313
This commit is contained in:
David Li 2011-08-04 06:22:15 +00:00 committed by Xinliang David Li
parent 9003789808
commit 63a7307104
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,8 @@
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

View file

@ -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