Now that we have comparison on probabilities, add some static functions
authorChandler Carruth <chandlerc@gmail.com>
Sun, 23 Oct 2011 20:10:34 +0000 (20:10 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Sun, 23 Oct 2011 20:10:34 +0000 (20:10 +0000)
commit66d847c8ffff5199248fccc10cb27f80c5cf9ebe
treec85984aecdf46a13c7e758c9fd0978dac1ebc7f7
parent4f780536953cdd3d92c21111301763ddd57ab720
Now that we have comparison on probabilities, add some static functions
to get important constant branch probabilities and use them for finding
the best branch out of a set of possibilities.

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