Support: Add BranchProbability::scale() and ::scaleByInverse()
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 29 Apr 2014 16:15:35 +0000 (16:15 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Tue, 29 Apr 2014 16:15:35 +0000 (16:15 +0000)
commit048f520b91e5fcabb1aa85cae3ec522ab5a539e6
treee263b166b42d4f06416f0553649ec9eb871a4bb8
parentf90262a09d35f9aba24357196f961733a4291aba
Support: Add BranchProbability::scale() and ::scaleByInverse()

Add API to `BranchProbability` for scaling big integers.  Next job is to
rip the logic out of `BlockMass` and `BlockFrequency`.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207544 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Support/BranchProbability.h
lib/Support/BranchProbability.cpp
unittests/Support/BranchProbabilityTest.cpp