[llvm] [VPlan] Update scalar induction resume values in VPlan. (PR #110577)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 13:36:43 PST 2024
================
@@ -2580,16 +2605,17 @@ void InnerLoopVectorizer::createVectorLoopSkeleton(StringRef Prefix) {
nullptr, Twine(Prefix) + "scalar.ph");
}
-PHINode *InnerLoopVectorizer::createInductionResumeValue(
- PHINode *OrigPhi, const InductionDescriptor &II, Value *Step,
- ArrayRef<BasicBlock *> BypassBlocks,
- std::pair<BasicBlock *, Value *> AdditionalBypass) {
+void InnerLoopVectorizer::createInductionResumeVPValue(
+ VPIRInstruction *InductionPhiRI, const InductionDescriptor &II, Value *Step,
+ ArrayRef<BasicBlock *> BypassBlocks, VPBuilder &ScalarPHBuilder,
+ Value *AdditionalBypassValue) {
----------------
ayalz wrote:
```suggestion
Value *MainVectorTripCount) {
```
this serves as the additional bypass value for primary induction, and the basis for computing additional bypass value for other inductions.
https://github.com/llvm/llvm-project/pull/110577
More information about the llvm-commits
mailing list