Fix a bug in MachineBlockPlacement that may cause assertion failure during BranchProb...
authorCong Hou <congh@google.com>
Tue, 1 Dec 2015 00:55:42 +0000 (00:55 +0000)
committerCong Hou <congh@google.com>
Tue, 1 Dec 2015 00:55:42 +0000 (00:55 +0000)
commit08802fa03338ebbe7f759586ef039d53f0d53194
treefca05b82c8cfbada10f786a4a0ff2126383c039a
parentbb823837e04dc83f63c5a6c021aae05655b68dc9
Fix a bug in MachineBlockPlacement that may cause assertion failure during BranchProbability construction.

The root cause is the rounding behavior in BranchProbability construction. We may consider to use truncation instead in the future.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254356 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/MachineBlockPlacement.cpp