[llvm] [VPlan] Update scalar induction resume values in VPlan. (PR #110577)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 1 05:07:43 PST 2024
================
@@ -7820,10 +7839,9 @@ EpilogueVectorizerMainLoop::createEpilogueVectorizedLoopSkeleton(
// Generate the induction variable.
EPI.VectorTripCount = getOrCreateVectorTripCount(LoopVectorPreHeader);
- // Skip induction resume value creation here because they will be created in
- // the second pass for the scalar loop. The induction resume values for the
- // inductions in the epilogue loop are created before executing the plan for
- // the epilogue loop.
+ // Create induction resume values and ResumePhis for the inductions in the
+ // epilogue loop in the VPlan for the epilogue vector loop.
----------------
ayalz wrote:
```suggestion
// Generate VPValues and ResumePhi recipes for inductions in the epilog loop to resume from the main loop or bypass it.
```
?
https://github.com/llvm/llvm-project/pull/110577
More information about the llvm-commits
mailing list