[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


================
@@ -2652,26 +2673,27 @@ static Value *getExpandedStep(const InductionDescriptor &ID,
   return I->second;
 }
 
-void InnerLoopVectorizer::createInductionResumeValues(
-    const SCEV2ValueTy &ExpandedSCEVs,
-    std::pair<BasicBlock *, Value *> AdditionalBypass) {
-  assert(((AdditionalBypass.first && AdditionalBypass.second) ||
-          (!AdditionalBypass.first && !AdditionalBypass.second)) &&
-         "Inconsistent information about additional bypass.");
+void InnerLoopVectorizer::createInductionResumeVPValues(
+    const SCEV2ValueTy &ExpandedSCEVs, Value *AdditionalBypassValue) {
----------------
ayalz wrote:

```suggestion
    const SCEV2ValueTy &ExpandedSCEVs, Value *MainVectorTripCount) {
```

https://github.com/llvm/llvm-project/pull/110577


More information about the llvm-commits mailing list