[llvm] [VPlan] Narrow truncates of an induction plus a constant offset (PR #226035)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 27 13:54:33 PDT 2026


================
@@ -5950,15 +5974,12 @@ void VPlanTransforms::narrowInductionTruncates(VPlan &Plan, VFRange &Range,
         continue;
 
       VPValue *Op = VPI.getOperand(0);
-      auto *WideIV = getOptimizableIVOf(Op, PSE);
+      VPValue *Start = nullptr;
+      VPWidenInductionRecipe *WideIV = getOptimizableIVOf(Op, PSE, &Start);
----------------
artagnon wrote:

```suggestion
      VPValue *Start;
      VPWidenInductionRecipe *WideIV = getOptimizableIVOf(Op, PSE, Start);
```

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


More information about the llvm-commits mailing list