[llvm] [VPlan] Add BranchOnMultiCond, use for early exit plans. (PR #172750)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 23 14:26:23 PST 2025


================
@@ -392,16 +392,19 @@ bool VPlanVerifier::verifyBlock(const VPBlockBase *VPB) {
   auto *VPBB = dyn_cast<VPBasicBlock>(VPB);
   // Check block's condition bit.
   if (!isa<VPIRBasicBlock>(VPB)) {
-    if (VPB->getNumSuccessors() > 1 ||
-        (VPBB && VPBB->getParent() && VPBB->isExiting() &&
-         !VPBB->getParent()->isReplicator())) {
-      if (!VPBB || !VPBB->getTerminator()) {
+    // VPRegionBlocks can have multiple successors (e.g., with
+    // BranchOnMultiCond) without needing a terminator, so only check
+    // VPBasicBlocks
----------------
fhahn wrote:

updated ,thanks

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


More information about the llvm-commits mailing list