[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:46 PDT 2026


================
@@ -430,9 +430,10 @@ template <typename InserterTy> class VPBuilderBase : public InserterTy {
   VPDerivedIVRecipe *createDerivedIV(InductionDescriptor::InductionKind Kind,
                                      FPMathOperator *FPBinOp, VPValue *Start,
                                      VPValue *Current, VPValue *Step,
-                                     const VPIRFlags::WrapFlagsTy &Flags = {}) {
+                                     const VPIRFlags::WrapFlagsTy &Flags = {},
+                                     DebugLoc DL = DebugLoc::getUnknown()) {
     return tryInsertInstruction(
-        new VPDerivedIVRecipe(Kind, FPBinOp, Start, Current, Step, Flags));
+        new VPDerivedIVRecipe(Kind, FPBinOp, Start, Current, Step, Flags, DL));
----------------
ElvisWang123 wrote:

Drop outdated changes.  Thanks!

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


More information about the llvm-commits mailing list