File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -9494,6 +9494,10 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
9494
9494
" entry block must be set to a VPRegionBlock having a non-empty entry "
9495
9495
" VPBasicBlock" );
9496
9496
9497
+ for (ElementCount VF : Range)
9498
+ Plan->addVF (VF);
9499
+ Plan->setName (" Initial VPlan" );
9500
+
9497
9501
// Update wide induction increments to use the same step as the corresponding
9498
9502
// wide induction. This enables detecting induction increments directly in
9499
9503
// VPlan and removes redundant splats.
@@ -9536,10 +9540,6 @@ LoopVectorizationPlanner::tryToBuildVPlanWithVPRecipes(VFRange &Range) {
9536
9540
InterleaveGroups, RecipeBuilder,
9537
9541
CM.isScalarEpilogueAllowed ());
9538
9542
9539
- for (ElementCount VF : Range)
9540
- Plan->addVF (VF);
9541
- Plan->setName (" Initial VPlan" );
9542
-
9543
9543
// Replace VPValues for known constant strides guaranteed by predicate scalar
9544
9544
// evolution.
9545
9545
auto CanUseVersionedStride = [&Plan](VPUser &U, unsigned ) {
You can’t perform that action at this time.
0 commit comments