[llvm] [VPlan] Make canonical IV part of the region (PR #156262)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 21 05:27:14 PDT 2026
================
@@ -9056,15 +9048,27 @@ static SmallVector<Instruction *> preparePlanForEpilogueVectorLoop(
"ScalarIVSteps when resetting the start value");
VPBuilder Builder(Header, Header->getFirstNonPhi());
VPInstruction *Add = Builder.createAdd(IV, VPV);
- IV->replaceAllUsesWith(Add);
- Add->setOperand(0, IV);
+ // Replace all users of the canonical IV with the offset version, except for
----------------
fhahn wrote:
I am not sure what kind of TOOD, the latest version should fix the issue mentioned above
https://github.com/llvm/llvm-project/pull/156262
More information about the llvm-commits
mailing list