File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -8957,12 +8957,13 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
8957
8957
Operands = {OpRange.begin (), OpRange.end ()};
8958
8958
}
8959
8959
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.
8962
8963
StoreInst *SI;
8963
8964
if ((SI = dyn_cast<StoreInst>(&I)) &&
8964
8965
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.
8966
8967
if (!Legal->isInvariantStoreOfReduction (SI))
8967
8968
continue ;
8968
8969
auto *Recipe = new VPReplicateRecipe (
You can’t perform that action at this time.
0 commit comments