[llvm] [VPlan] Update scalar induction resume values in VPlan. (PR #110577)

Alexey Bataev via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 07:17:03 PST 2024


================
@@ -532,6 +533,11 @@ class InnerLoopVectorizer {
   /// count of the original loop for both main loop and epilogue vectorization.
   void setTripCount(Value *TC) { TripCount = TC; }
 
+  std::pair<BasicBlock *, Value *>
+  getInductionBypassValue(PHINode *OrigPhi) const {
+    return InductionBypassValues.find(OrigPhi)->second;
----------------
alexey-bataev wrote:

```suggestion
    return InductionBypassValues.at(OrigPhi);
```


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


More information about the llvm-commits mailing list