Skip to content

Commit 76d4dde

Browse files
committed
Updated comments
1 parent 1fa2c6a commit 76d4dde

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8957,12 +8957,13 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
89578957
Operands = {OpRange.begin(), OpRange.end()};
89588958
}
89598959

8960-
// Invariant stores inside loop will be deleted and a single store
8961-
// with the final reduction value will be added to the exit block
8960+
// The stores with invariant address inside the loop will be deleted, and
8961+
// in the exit block, a uniform store recipe will be created for the final
8962+
// invariant store of the reduction.
89628963
StoreInst *SI;
89638964
if ((SI = dyn_cast<StoreInst>(&I)) &&
89648965
Legal->isInvariantAddressOfReduction(SI->getPointerOperand())) {
8965-
// Only create recipe for the last intermediate store of the reduction.
8966+
// Only create recipe for the final invariant store of the reduction.
89668967
if (!Legal->isInvariantStoreOfReduction(SI))
89678968
continue;
89688969
auto *Recipe = new VPReplicateRecipe(

0 commit comments

Comments
 (0)