Skip to content

Commit b84c429

Browse files
authored
[NFC][LoopVectorize] Rename variable in replaceVPBBWithIRVPBB (#108543)
I've renamed the variable in replaceVPBBWithIRVPBB from IRMiddleVPBB -> IRVPBB, since the function is used for more than just replacing the middle VP block.
1 parent 17a3bdb commit b84c429

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Transforms/Vectorize/VPlan.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -981,16 +981,16 @@ void VPlan::prepareToExecute(Value *TripCountV, Value *VectorTripCountV,
981981
/// have a single predecessor, which is rewired to the new VPIRBasicBlock. All
982982
/// successors of VPBB, if any, are rewired to the new VPIRBasicBlock.
983983
static void replaceVPBBWithIRVPBB(VPBasicBlock *VPBB, BasicBlock *IRBB) {
984-
VPIRBasicBlock *IRMiddleVPBB = createVPIRBasicBlockFor(IRBB);
984+
VPIRBasicBlock *IRVPBB = createVPIRBasicBlockFor(IRBB);
985985
for (auto &R : make_early_inc_range(*VPBB)) {
986986
assert(!R.isPhi() && "Tried to move phi recipe to end of block");
987-
R.moveBefore(*IRMiddleVPBB, IRMiddleVPBB->end());
987+
R.moveBefore(*IRVPBB, IRVPBB->end());
988988
}
989989
VPBlockBase *PredVPBB = VPBB->getSinglePredecessor();
990990
VPBlockUtils::disconnectBlocks(PredVPBB, VPBB);
991-
VPBlockUtils::connectBlocks(PredVPBB, IRMiddleVPBB);
991+
VPBlockUtils::connectBlocks(PredVPBB, IRVPBB);
992992
for (auto *Succ : to_vector(VPBB->getSuccessors())) {
993-
VPBlockUtils::connectBlocks(IRMiddleVPBB, Succ);
993+
VPBlockUtils::connectBlocks(IRVPBB, Succ);
994994
VPBlockUtils::disconnectBlocks(VPBB, Succ);
995995
}
996996
delete VPBB;

0 commit comments

Comments
 (0)