[llvm] [VPlan] Support VPWidenIntOrFpInductionRecipes with EVL tail folding (PR #144666)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 20 10:42:27 PDT 2025
================
@@ -2267,11 +2269,10 @@ bool VPlanTransforms::tryAddExplicitVectorLength(
VPlan &Plan, const std::optional<unsigned> &MaxSafeElements) {
VPBasicBlock *Header = Plan.getVectorLoopRegion()->getEntryBasicBlock();
// The transform updates all users of inductions to work based on EVL, instead
- // 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(),
- IsaPred<VPWidenIntOrFpInductionRecipe, VPWidenPointerInductionRecipe>);
+ // of the VF directly. At the moment, widened pointer inductions cannot be
+ // updated, so bail out if the plan contains any.
+ bool ContainsWidenInductions =
----------------
preames wrote:
ContainsWidenPointerInductions
https://github.com/llvm/llvm-project/pull/144666
More information about the llvm-commits
mailing list