Skip to content

Commit 192fcbb

Browse files
committed
Refine WidenInduction check.
1 parent 0b3e344 commit 192fcbb

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
@@ -1428,8 +1428,8 @@ bool VPlanTransforms::tryAddExplicitVectorLength(VPlan &Plan) {
14281428
// of the VF directly. At the moment, widened inductions cannot be updated, so
14291429
// bail out if the plan contains any.
14301430
bool IncludeWidenInduction = any_of(Header->phis(), [](VPRecipeBase &Phi) {
1431-
return (isa<VPWidenIntOrFpInductionRecipe>(&Phi) ||
1432-
isa<VPWidenPointerInductionRecipe>(&Phi));
1431+
return isa<VPWidenIntOrFpInductionRecipe, VPWidenPointerInductionRecipe>(
1432+
&Phi);
14331433
});
14341434
// FIXME: Remove this once we can transform (select header_mask, true_value,
14351435
// false_value) into vp.merge.

0 commit comments

Comments
 (0)