[llvm] [VPlan] Model branch cond to enter scalar epilogue in VPlan. (PR #92651)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 4 13:29:40 PDT 2024


================
@@ -448,11 +449,15 @@ VPBasicBlock::createEmptyBasicBlock(VPTransformState::CFGState &CFG) {
 }
 
 void VPIRBasicBlock::execute(VPTransformState *State) {
-  assert(getHierarchicalSuccessors().empty() &&
-         "VPIRBasicBlock cannot have successors at the moment");
-
+  assert(getHierarchicalSuccessors().size() <= 2);
----------------
ayalz wrote:

```suggestion
  assert(getHierarchicalSuccessors().size() <= 2 &&
           "VPIRBasicBlock can have at most two successors at the moment");
```
can any block have more than 2? ...

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


More information about the llvm-commits mailing list