24 "Machine Branch Probability Analysis",
false,
true)
30 cl::desc("branch probability threshold in percentage"
31 "to be considered very likely"),
32 cl::
init(80), cl::Hidden);
36 cl::desc("branch probability threshold in percentage to be considered"
38 cl::init(51), cl::Hidden);
40 char MachineBranchProbabilityInfo::
ID = 0;
42 MachineBranchProbabilityInfo::MachineBranchProbabilityInfo()
48 void MachineBranchProbabilityInfo::anchor() {}
53 return Src->getSuccProbability(Dst);
95 <<
" probability is " << Prob
96 << (
isEdgeHot(Src, Dst) ?
" [HOT edge]\n" :
"\n");
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
coro Split coroutine into a set of functions driving its state machine
This class represents lattice values for constants.
A global registry used in conjunction with static constructors to make pluggable components (like tar...
machine branch Machine Branch Probability true cl::opt< unsigned > StaticLikelyProb("static-likely-prob", cl::desc("branch probability threshold in percentage" "to be considered very likely"), cl::init(80), cl::Hidden)
raw_ostream & printEdgeProbability(raw_ostream &OS, const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const
block Block Frequency true
iterator_range< succ_iterator > successors()
Printable printMBBReference(const MachineBasicBlock &MBB)
Prints a machine basic block reference.
MachineBasicBlock * getHotSucc(MachineBasicBlock *MBB) const
INITIALIZE_PASS_BEGIN(MachineBranchProbabilityInfo, "machine-branch-prob", "Machine Branch Probability Analysis", false, true) INITIALIZE_PASS_END(MachineBranchProbabilityInfo
COFF::MachineTypes Machine
return !LiveInRegUnits available(Reg)
initializer< Ty > init(const Ty &Val)
cl::opt< unsigned > ProfileLikelyProb("profile-likely-prob", cl::desc("branch probability threshold in percentage to be considered" " very likely when profile is available"), cl::init(51), cl::Hidden)
static GCRegistry::Add< CoreCLRGC > E("coreclr", "CoreCLR-compatible GC")
std::vector< MachineBasicBlock * >::const_iterator const_succ_iterator
succ_iterator succ_begin()
auto find(R &&Range, const T &Val) -> decltype(adl_begin(Range))
Provide wrappers to std::find which take ranges instead of having to pass begin/end explicitly...
INITIALIZE_PASS_END(RegBankSelect, DEBUG_TYPE, "Assign register bank of generic virtual registers", false, false) RegBankSelect
ImmutablePass class - This class is used to provide information that does not need to be run...
BranchProbability getEdgeProbability(const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const
pgo instr Read PGO instrumentation profile
void initializeMachineBranchProbabilityInfoPass(PassRegistry &)
bool isEdgeHot(const MachineBasicBlock *Src, const MachineBasicBlock *Dst) const
This class implements an extremely fast bulk output stream that can only output to a stream...
PassRegistry - This class manages the registration and intitialization of the pass subsystem as appli...
static BranchProbability getZero()