Skip to content

Commit 6704873

Browse files
committed
correct comment
1 parent cc06bc0 commit 6704873

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ void unfold(DomTreeUpdater *DTU, LoopInfo *LI, BlockFrequencyInfo *BFI,
288288
// Update BPI if exists.
289289
if (BPI && !SIProbs.empty())
290290
BPI->setEdgeProbability(StartBlock, SIProbs);
291-
// Update the block frequency of both NewBlock.
291+
// Update the block frequency of NewBlock.
292292
if (BFI)
293293
BFI->setBlockFreq(NewBlock, BFI->getBlockFreq(StartBlock) * FalseProb);
294294
} else {
@@ -367,7 +367,7 @@ void unfold(DomTreeUpdater *DTU, LoopInfo *LI, BlockFrequencyInfo *BFI,
367367
// Update BPI if exists.
368368
if (BPI && !SIProbs.empty())
369369
BPI->setEdgeProbability(NewBlockT, SIProbs);
370-
// Update the block frequency of both NewBB and EndBB.
370+
// Update the block frequency of both NewBlockT and NewBlockF.
371371
if (BFI) {
372372
assert(BPI && "BPI should be valid if BFI exists");
373373
auto NewBlockTFreq = BFI->getBlockFreq(StartBlock) *

0 commit comments

Comments
 (0)