[llvm] [VPlan] Add support for VPWidenIntOrFpInductionRecipe in predicated D… (PR #115274)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 8 10:58:52 PST 2024


================
@@ -1569,8 +1689,7 @@ bool VPlanTransforms::tryAddExplicitVectorLength(
   // of the VF directly. At the moment, widened inductions cannot be updated, so
   // bail out if the plan contains any.
   bool ContainsWidenInductions = any_of(Header->phis(), [](VPRecipeBase &Phi) {
-    return isa<VPWidenIntOrFpInductionRecipe, VPWidenPointerInductionRecipe>(
-        &Phi);
+    return isa<VPWidenPointerInductionRecipe>(&Phi);
   });
----------------
alexey-bataev wrote:

```suggestion
  bool ContainsWidenInductions = any_of(Header->phis(), IsaPred<VPWidenPointerInductionRecipe>);
```

https://github.com/llvm/llvm-project/pull/115274


More information about the llvm-commits mailing list