[llvm] [VPlan] Handle canonical VPWidenIntOrFpInduction in branch-condition simplification (PR #153539)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 18 03:42:52 PDT 2025


================
@@ -1497,11 +1497,24 @@ static bool simplifyBranchConditionForVFAndUF(VPlan &Plan, ElementCount BestVF,
   // The vector loop region only executes once. If possible, completely remove
   // the region, otherwise replace the terminator controlling the latch with
   // (BranchOnCond true).
+  // TODO: Support all widen induction recipes (e.g.,
+  // VPWidenIntOrFpInductionRecipe, VPWidenPointerInductionRecipe).
----------------
fhahn wrote:

I think the comment needs updating to reflect that `VPWidenIntOrFpInductionRecipe` is now partially supported. What's not yet supported is non-canonical wide IVs.

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


More information about the llvm-commits mailing list