[llvm] [VPlan] Dispatch to multiple exit blocks via middle blocks. (PR #112138)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 10 08:30:10 PST 2024


================
@@ -3884,10 +3887,10 @@ class VPlan {
   /// whether to execute the scalar tail loop or the exit block from the loop
   /// latch.
   const VPBasicBlock *getMiddleBlock() const {
-    return cast<VPBasicBlock>(getVectorLoopRegion()->getSingleSuccessor());
+    return cast<VPBasicBlock>(getScalarPreheader()->getSinglePredecessor());
----------------
fhahn wrote:

Yep, this will need some extra work for https://github.com/llvm/llvm-project/pull/114292, which I plan to land after this PR.

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


More information about the llvm-commits mailing list