summaryrefslogtreecommitdiffstats
path: root/llvm/test/ExecutionEngine
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@apple.com>2014-08-07 19:30:13 +0000
committerAkira Hatanaka <ahatanaka@apple.com>2014-08-07 19:30:13 +0000
commitbbd33f6766d8c35c35c4633921422cd860af048b (patch)
tree9124dccd00eb6d12cd0e4655fd55b832045d4030 /llvm/test/ExecutionEngine
parent42461e9f1325aeb4d2dadd6b02bbdea5151268f6 (diff)
downloadbcm5719-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')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud