diff options
author | Akira Hatanaka <ahatanaka@apple.com> | 2014-08-07 19:30:13 +0000 |
---|---|---|
committer | Akira Hatanaka <ahatanaka@apple.com> | 2014-08-07 19:30:13 +0000 |
commit | bbd33f6766d8c35c35c4633921422cd860af048b (patch) | |
tree | 9124dccd00eb6d12cd0e4655fd55b832045d4030 /llvm/test/ExecutionEngine/test-fp.ll | |
parent | 42461e9f1325aeb4d2dadd6b02bbdea5151268f6 (diff) | |
download | bcm5719-llvm-bbd33f6766d8c35c35c4633921422cd860af048b.tar.gz bcm5719-llvm-bbd33f6766d8c35c35c4633921422cd860af048b.zip |
[Branch probability] Recompute branch weights of tail-merged basic blocks.
BranchFolderPass was not correctly setting the basic block branch weights when
tail-merging created or merged blocks. This patch recomutes the weights of
tail-merged blocks using the following formula:
branch_weight(merged block to successor j) =
sum(block_frequency(bb) * branch_probability(bb -> j))
bb is a block that is in the set of merged blocks.
<rdar://problem/16256423>
llvm-svn: 215135
Diffstat (limited to 'llvm/test/ExecutionEngine/test-fp.ll')
0 files changed, 0 insertions, 0 deletions