[llvm] [VPlan] Hook IR blocks into VPlan during skeleton creation (NFC) (PR #114292)
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 5 11:51:26 PST 2024
================
@@ -1005,16 +1016,23 @@ void VPlan::execute(VPTransformState *State) {
State->CFG.DTU.applyUpdates(
{{DominatorTree::Delete, VectorPreHeader, State->CFG.ExitBB}});
- // Replace regular VPBB's for the middle and scalar preheader blocks with
- // VPIRBasicBlocks wrapping their IR blocks. The IR blocks are created during
- // skeleton creation, so we can only create the VPIRBasicBlocks now during
- // VPlan execution rather than earlier during VPlan construction.
+ // Replace regular VPBB's for the vector preheader, middle and scalar
+ // preheader blocks with VPIRBasicBlocks wrapping their IR blocks. The IR
+ // blocks are created during skeleton creation, so we can only create the
+ // VPIRBasicBlocks now during VPlan execution rather than earlier during VPlan
+ // construction.
+ replaceVPBBWithIRVPBB(getVectorPreheader(), VectorPreHeader);
----------------
fhahn wrote:
Moved, thanks
https://github.com/llvm/llvm-project/pull/114292
More information about the llvm-commits
mailing list