File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
llvm/lib/Transforms/Vectorize Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -1433,11 +1433,12 @@ bool VPlanTransforms::tryAddExplicitVectorLength(VPlan &Plan) {
1433
1433
});
1434
1434
// FIXME: Remove this once we can transform (select header_mask, true_value,
1435
1435
// 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)
1441
1442
return false ;
1442
1443
1443
1444
auto *CanonicalIVPHI = Plan.getCanonicalIV ();
You can’t perform that action at this time.
0 commit comments