Skip to content

Commit 9abd2e1

Browse files
committed
Rename IncludeWidenInduction to ContainsWidenInductions
1 parent 192fcbb commit 9abd2e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1427,7 +1427,7 @@ bool VPlanTransforms::tryAddExplicitVectorLength(VPlan &Plan) {
14271427
// The transform updates all users of inductions to work based on EVL, instead
14281428
// of the VF directly. At the moment, widened inductions cannot be updated, so
14291429
// bail out if the plan contains any.
1430-
bool IncludeWidenInduction = any_of(Header->phis(), [](VPRecipeBase &Phi) {
1430+
bool ContainsWidenInductions = any_of(Header->phis(), [](VPRecipeBase &Phi) {
14311431
return isa<VPWidenIntOrFpInductionRecipe, VPWidenPointerInductionRecipe>(
14321432
&Phi);
14331433
});
@@ -1437,7 +1437,7 @@ bool VPlanTransforms::tryAddExplicitVectorLength(VPlan &Plan) {
14371437
auto *R = dyn_cast<VPReductionPHIRecipe>(&Phi);
14381438
return R && !R->isInLoop();
14391439
});
1440-
if (IncludeWidenInduction || IncludeOutloopReduction)
1440+
if (ContainsWidenInductions || IncludeOutloopReduction)
14411441
return false;
14421442

14431443
auto *CanonicalIVPHI = Plan.getCanonicalIV();

0 commit comments

Comments
 (0)