[llvm] [VPlan] Compute induction end values in VPlan. (PR #112145)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 10 14:45:34 PST 2024
================
@@ -2766,8 +2714,8 @@ InnerLoopVectorizer::createVectorizedLoopSkeleton(
// faster.
emitMemRuntimeChecks(LoopScalarPreHeader);
- // Emit phis for the new starting index of the scalar loop.
- createInductionResumeVPValues(ExpandedSCEVs);
+ Value *VectorTripCount = getOrCreateVectorTripCount(LoopVectorPreHeader);
----------------
ayalz wrote:
```suggestion
// VectorTripCount needs to be created here, w/o needing to use it? Worth a comment.
Value *VectorTripCount = getOrCreateVectorTripCount(LoopVectorPreHeader);
(void)VectorTripCount;
```
https://github.com/llvm/llvm-project/pull/112145
More information about the llvm-commits
mailing list