[llvm] [VPlan] Model branch cond to enter scalar epilogue in VPlan. (PR #92651)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 4 13:07:47 PDT 2024
================
@@ -448,11 +448,13 @@ VPBasicBlock::createEmptyBasicBlock(VPTransformState::CFGState &CFG) {
}
void VPIRBasicBlock::execute(VPTransformState *State) {
- assert(getHierarchicalSuccessors().empty() &&
- "VPIRBasicBlock cannot have successors at the moment");
-
State->Builder.SetInsertPoint(getIRBasicBlock()->getTerminator());
executeRecipes(State, getIRBasicBlock());
+ if (getSingleSuccessor() && isa<UnreachableInst>(getIRBasicBlock()->getTerminator())) {
----------------
fhahn wrote:
Turned into an assert, thanks!
https://github.com/llvm/llvm-project/pull/92651
More information about the llvm-commits
mailing list