[llvm] [VPlan] Update scalar induction resume values in VPlan. (PR #110577)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 17 14:24:47 PST 2024
================
@@ -2576,9 +2588,10 @@ void InnerLoopVectorizer::createVectorLoopSkeleton(StringRef Prefix) {
nullptr, Twine(Prefix) + "scalar.ph");
}
-PHINode *InnerLoopVectorizer::createInductionResumeValue(
- PHINode *OrigPhi, const InductionDescriptor &II, Value *Step,
- ArrayRef<BasicBlock *> BypassBlocks,
+void InnerLoopVectorizer::createInductionResumeValue(
+ VPIRInstruction *PhiR, PHINode *OrigPhi, const InductionDescriptor &II,
+ Value *Step, ArrayRef<BasicBlock *> BypassBlocks,
+ VPBuilder &ScalarPHBuilder,
std::pair<BasicBlock *, Value *> AdditionalBypass) {
----------------
ayalz wrote:
```suggestion
VPIRInstruction *PhiR, const InductionDescriptor &II,
Value *Step, ArrayRef<BasicBlock *> BypassBlocks,
VPBuilder &ScalarPHBuilder,
std::pair<BasicBlock *, Value *> AdditionalBypass) {
auto *OrigPhi = cast<PHINode>(&PhiR->getInstruction());
```
?
https://github.com/llvm/llvm-project/pull/110577
More information about the llvm-commits
mailing list