summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
diff options
context:
space:
mode:
authorSerguei Katkov <serguei.katkov@azul.com>2019-07-04 05:10:14 +0000
committerSerguei Katkov <serguei.katkov@azul.com>2019-07-04 05:10:14 +0000
commit6d8813a3915a75939fa1a7965f56ed2a636783e2 (patch)
tree655e9b9e534bf8aacfaf7224dead2b091f28f282 /llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
parent1f333562de96bb9343721a703dee1277929d61e4 (diff)
downloadbcm5719-llvm-6d8813a3915a75939fa1a7965f56ed2a636783e2.tar.gz
bcm5719-llvm-6d8813a3915a75939fa1a7965f56ed2a636783e2.zip
[LoopPeel] Some small comment update. NFC.
Follow-up change of comment after https://reviews.llvm.org/D63917 is landed. llvm-svn: 365107
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp b/llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
index dcd059da858..157e8e7c1d7 100644
--- a/llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
+++ b/llvm/lib/Transforms/Utils/LoopUnrollPeel.cpp
@@ -386,8 +386,8 @@ static void updateBranchWeights(BasicBlock *Header, BranchInst *LatchBR,
/// \param Header The header block.
/// \param LatchBR The latch branch.
/// \param AvgIters The average number of iterations we expect the loop to have.
-/// \param[out] ExitWeight The weight of the edge from Latch to Exit block.
-/// \param[out] CurHeaderWeight The # of time the header is executed.
+/// \param[out] ExitWeight The # of times the edge from Latch to Exit is taken.
+/// \param[out] CurHeaderWeight The # of times the header is executed.
static void initBranchWeights(BasicBlock *Header, BranchInst *LatchBR,
unsigned AvgIters, uint64_t &ExitWeight,
uint64_t &CurHeaderWeight) {
@@ -397,7 +397,7 @@ static void initBranchWeights(BasicBlock *Header, BranchInst *LatchBR,
unsigned HeaderIdx = LatchBR->getSuccessor(0) == Header ? 0 : 1;
ExitWeight = HeaderIdx ? TrueWeight : FalseWeight;
// The # of times the loop body executes is the sum of the exit block
- // weight and the # of times the backedges are taken.
+ // is taken and the # of times the backedges are taken.
CurHeaderWeight = TrueWeight + FalseWeight;
}
OpenPOWER on IntegriCloud