[llvm] [LV] Emit truncate for widen-induction in VPlan during construction. (PR #225991)

Elvis Wang via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 5 21:11:42 PDT 2026


================
@@ -384,6 +384,24 @@ static void fixupVFUsersForEVL(VPlan &Plan, VPValue &EVL) {
     return isa<VPWidenPointerInductionRecipe>(U);
   });
 
+  // Also replace VF with EVL for truncated widen induction.
+  for (VPBasicBlock *VPBB : VPBlockUtils::blocksOnly<VPBasicBlock>(
+           vp_depth_first_deep(Plan.getVectorLoopRegion()->getEntry()))) {
+    for (VPRecipeBase &R : VPBB->phis()) {
+      auto *WidenIV = dyn_cast<VPWidenIntOrFpInductionRecipe>(&R);
----------------
ElvisWang123 wrote:

Updated, thanks!

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


More information about the llvm-commits mailing list