[llvm] r365107 - [LoopPeel] Some small comment update. NFC.

Serguei Katkov via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 3 22:10:14 PDT 2019


Author: skatkov
Date: Wed Jul  3 22:10:14 2019
New Revision: 365107

URL: http://llvm.org/viewvc/llvm-project?rev=365107&view=rev
Log:
[LoopPeel] Some small comment update. NFC.

Follow-up change of comment after
https://reviews.llvm.org/D63917 is landed.

Modified:
    llvm/trunk/lib/Transforms/Utils/LoopUnrollPeel.cpp

Modified: llvm/trunk/lib/Transforms/Utils/LoopUnrollPeel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Utils/LoopUnrollPeel.cpp?rev=365107&r1=365106&r2=365107&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Utils/LoopUnrollPeel.cpp (original)
+++ llvm/trunk/lib/Transforms/Utils/LoopUnrollPeel.cpp Wed Jul  3 22:10:14 2019
@@ -386,8 +386,8 @@ static void updateBranchWeights(BasicBlo
 /// \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
   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;
 }
 




More information about the llvm-commits mailing list