Skip to content

Commit 4f381d0

Browse files
committed
[VPlan] Use Operands to create VPReplicateRecipe for invar store. (NFC)
1 parent d5a7a48 commit 4f381d0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorize.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9350,7 +9350,7 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
93509350
if (!Legal->isInvariantStoreOfReduction(SI))
93519351
continue;
93529352
auto *Recipe = new VPReplicateRecipe(
9353-
SI, RecipeBuilder.mapToVPValues(Instr->operands()),
9353+
SI, make_range(Operands.begin(), Operands.end()),
93549354
true /* IsUniform */);
93559355
Recipe->insertBefore(*MiddleVPBB, MBIP);
93569356
continue;

0 commit comments

Comments
 (0)