Skip to content

Commit 7e1dc7e

Browse files
authored
[nfc] Rename API with typo in BranchProbabilityInfo (#146447)
1 parent 16b75c8 commit 7e1dc7e

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

llvm/include/llvm/Analysis/BranchProbabilityInfo.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -411,8 +411,8 @@ class BranchProbabilityInfo {
411411
std::optional<uint32_t> getInitialEstimatedBlockWeight(const BasicBlock *BB);
412412

413413
// Computes estimated weights for all blocks in \p F.
414-
void computeEestimateBlockWeight(const Function &F, DominatorTree *DT,
415-
PostDominatorTree *PDT);
414+
void estimateBlockWeights(const Function &F, DominatorTree *DT,
415+
PostDominatorTree *PDT);
416416

417417
/// Based on computed weights by \p computeEstimatedBlockWeight set
418418
/// probabilities on branches.

llvm/lib/Analysis/BranchProbabilityInfo.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -798,8 +798,9 @@ BranchProbabilityInfo::getInitialEstimatedBlockWeight(const BasicBlock *BB) {
798798
// Does RPO traversal over all blocks in \p F and assigns weights to
799799
// 'unreachable', 'noreturn', 'cold', 'unwind' blocks. In addition it does its
800800
// best to propagate the weight to up/down the IR.
801-
void BranchProbabilityInfo::computeEestimateBlockWeight(
802-
const Function &F, DominatorTree *DT, PostDominatorTree *PDT) {
801+
void BranchProbabilityInfo::estimateBlockWeights(const Function &F,
802+
DominatorTree *DT,
803+
PostDominatorTree *PDT) {
803804
SmallVector<BasicBlock *, 8> BlockWorkList;
804805
SmallVector<LoopBlock, 8> LoopWorkList;
805806
SmallDenseMap<LoopData, SmallVector<BasicBlock *, 4>> LoopExitBlocks;
@@ -1244,7 +1245,7 @@ void BranchProbabilityInfo::calculate(const Function &F, const LoopInfo &LoopI,
12441245
PDT = PDTPtr.get();
12451246
}
12461247

1247-
computeEestimateBlockWeight(F, DT, PDT);
1248+
estimateBlockWeights(F, DT, PDT);
12481249

12491250
// Walk the basic blocks in post-order so that we can build up state about
12501251
// the successors of a block iteratively.

0 commit comments

Comments
 (0)