[llvm] [VPlan] Narrow truncates of an induction plus a constant offset (PR #226035)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 25 00:09:33 PDT 2026
================
@@ -5950,15 +5997,23 @@ void VPlanTransforms::narrowInductionTruncates(VPlan &Plan, VFRange &Range,
continue;
VPValue *Op = VPI.getOperand(0);
- auto *WideIV = getOptimizableIVOf(Op, PSE);
+ auto IVAndStart = getOptimizableIVOf(Op, Plan, PSE);
+ VPWidenInductionRecipe *WideIV = IVAndStart.first;
+ VPValue *Start = IVAndStart.second;
----------------
artagnon wrote:
```suggestion
VPWidenInductionRecipe *WideIV;
VPValue *Start;
std::tie(WideIV, Start) = getOptimizableIVOf(Op, Plan, PSE);
```
You're lambda-capturing it so auto won't work until we bump the C++ standard?
https://github.com/llvm/llvm-project/pull/226035
More information about the llvm-commits
mailing list