[llvm] [VPlan] Connect (MemRuntime|SCEV)Check blocks as VPlan transform (NFC). (PR #143879)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Jul 5 12:25:01 PDT 2025
================
@@ -487,10 +487,16 @@ void VPBasicBlock::connectToPredecessors(VPTransformState &State) {
} else {
// Set each forward successor here when it is created, excluding
// backedges. A backward successor is set when the branch is created.
+ // Branches to VPIRBasicBlocks must have the same successors in VPlan as
+ // in the original IR, except if the predecessors is the entry block. This
+ // enables including SCEV and memory runtime check blocks in VPlan.
+ // TODO: Remove exception by modeling branch in the entry block using
----------------
ayalz wrote:
```suggestion
// TODO: Remove exception by modeling the terminator of entry block using
```
https://github.com/llvm/llvm-project/pull/143879
More information about the llvm-commits
mailing list