getBranchProbability overloads
Declared in <llvm/Transforms/Utils/LoopUtils.h>
Return the edge probability from Src to successor Dst.
BranchProbability
getBranchProbability(
BasicBlock* Src,
BasicBlock* Dst);
» more...
Return the probability that conditional branch B takes one successor.
BranchProbability
getBranchProbability(
CondBrInst* B,
bool ForFirstTarget);
» more...
Src to Dst, or unknown if unavailable.| Name | Description |
|---|---|
| Src | Source basic block of the CFG edge. |
| Dst | Successor basic block of the CFG edge. |
| B | Conditional branch with exactly two successors. |
| ForFirstTarget | If true, return the probability of the first successor; otherwise the second. |