Skip to content

Commit ea173fb

Browse files
committed
Rename IncludeOutloopReduction to ContainsOutLoopReductions
1 parent 9abd2e1 commit ea173fb

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,11 +1433,12 @@ bool VPlanTransforms::tryAddExplicitVectorLength(VPlan &Plan) {
14331433
});
14341434
// FIXME: Remove this once we can transform (select header_mask, true_value,
14351435
// false_value) into vp.merge.
1436-
bool IncludeOutloopReduction = any_of(Header->phis(), [&](VPRecipeBase &Phi) {
1437-
auto *R = dyn_cast<VPReductionPHIRecipe>(&Phi);
1438-
return R && !R->isInLoop();
1439-
});
1440-
if (ContainsWidenInductions || IncludeOutloopReduction)
1436+
bool ContainsOutloopReductions =
1437+
any_of(Header->phis(), [&](VPRecipeBase &Phi) {
1438+
auto *R = dyn_cast<VPReductionPHIRecipe>(&Phi);
1439+
return R && !R->isInLoop();
1440+
});
1441+
if (ContainsWidenInductions || ContainsOutloopReductions)
14411442
return false;
14421443

14431444
auto *CanonicalIVPHI = Plan.getCanonicalIV();

0 commit comments

Comments
 (0)