[llvm] [VPlan] Manage created blocks directly in VPlan. (NFC) (PR #120918)
via llvm-commits
llvm-commits at lists.llvm.org
Sun Dec 29 11:54:10 PST 2024
================
@@ -2477,7 +2477,7 @@ static void introduceCheckBlockInVPlan(VPlan &Plan, BasicBlock *CheckIRBB) {
assert(PreVectorPH->getNumSuccessors() == 2 && "Expected 2 successors");
assert(PreVectorPH->getSuccessors()[0] == ScalarPH &&
"Unexpected successor");
- VPIRBasicBlock *CheckVPIRBB = VPIRBasicBlock::fromBasicBlock(CheckIRBB);
+ VPIRBasicBlock *CheckVPIRBB = Plan.createVPIRBasicBlock(CheckIRBB);
----------------
ayalz wrote:
Such construction of VPBB's seems complementary of `VPBuilder`, `VPlanHCFGBuilder`, `VPRecipeBuilder`?
https://github.com/llvm/llvm-project/pull/120918
More information about the llvm-commits
mailing list