[llvm] [VPlan] Retain exit conditions and edges in initial VPlan (NFC). (PR #137709)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 6 07:46:57 PDT 2025


================
@@ -447,19 +424,21 @@ static void createLoopRegion(VPlan &Plan, VPBlockBase *HeaderVPB) {
   VPBlockBase *Succ = LatchVPBB->getSingleSuccessor();
   assert(LatchVPBB->getNumSuccessors() <= 1 &&
          "Latch has more than one successor");
----------------
ayalz wrote:

```suggestion
  assert(Succ && "Latch expected to be left with a single successor");
```
?

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


More information about the llvm-commits mailing list