Introduce MachineBranchProbabilityInfo class, which has similar API to
authorJakub Staszak <jstaszak@apple.com>
Thu, 16 Jun 2011 20:22:37 +0000 (20:22 +0000)
committerJakub Staszak <jstaszak@apple.com>
Thu, 16 Jun 2011 20:22:37 +0000 (20:22 +0000)
commit7cc2b07437a1243c33324549a1904fefc5f1845e
tree98fdfe4b06c5b320c982c137fbdd4e292af9f330
parent1300f3019e5d590231bbc3d907626708515d3212
Introduce MachineBranchProbabilityInfo class, which has similar API to
BranchProbabilityInfo (expect setEdgeWeight which is not available here).
Branch Weights are kept in MachineBasicBlocks. To turn off this analysis
set -use-mbpi=false.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@133184 91177308-0d34-0410-b5e6-96231b3b80d8
12 files changed:
include/llvm/Analysis/BranchProbabilityInfo.h
include/llvm/CodeGen/FunctionLoweringInfo.h
include/llvm/CodeGen/MachineBasicBlock.h
include/llvm/CodeGen/MachineBranchProbabilityInfo.h [new file with mode: 0644]
include/llvm/InitializePasses.h
lib/Analysis/BranchProbabilityInfo.cpp
lib/CodeGen/CMakeLists.txt
lib/CodeGen/MachineBasicBlock.cpp
lib/CodeGen/MachineBranchProbabilityInfo.cpp [new file with mode: 0644]
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp