[llvm] [VPlan] Make canonical IV part of the region (PR #156262)

via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 2 00:48:02 PDT 2025


================
@@ -9552,6 +9548,7 @@ static SmallVector<Instruction *> preparePlanForEpilogueVectorLoop(
     EPI.VectorTripCount = EPResumeVal->getOperand(0);
   }
   VPValue *VPV = Plan.getOrAddLiveIn(EPResumeVal);
+  VPValue *IV = VectorLoop->getCanonicalIV();
----------------
ayalz wrote:

This replaces an `if (auto *IV = dyn_cast...`

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


More information about the llvm-commits mailing list