Skip to content

Commit 20d491b

Browse files
committed
[VPlan] Remove re-using vector PH in VPBasicBlock::execute (NFC).
Remove logic to re-use the previous basic block for the vector pre header from VPBasicBlock::execute. The preheader is now modeled as VPIRBasicBlock, so the code is no longer needed. Split off from #108378.
1 parent b2adeae commit 20d491b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -487,11 +487,9 @@ void VPBasicBlock::execute(VPTransformState *State) {
487487
};
488488

489489
// 1. Create an IR basic block.
490-
if (this == getPlan()->getVectorPreheader() ||
491-
(Replica && this == getParent()->getEntry()) ||
490+
if ((Replica && this == getParent()->getEntry()) ||
492491
IsReplicateRegion(getSingleHierarchicalPredecessor())) {
493492
// Reuse the previous basic block if the current VPBB is either
494-
// * the vector preheader,
495493
// * the entry to a replicate region, or
496494
// * the exit of a replicate region.
497495
State->CFG.VPBB2IRBB[this] = NewBB;

0 commit comments

Comments
 (0)