Skip to content

Commit 39179ca

Browse files
committed
[NFC][LoopVectorize] Rename variable in replaceVPBBWithIRVPBB
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 f3029b3 commit 39179ca

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
@@ -972,14 +972,14 @@ void VPlan::prepareToExecute(Value *TripCountV, Value *VectorTripCountV,
972972
/// predecessor, which is rewired to the new VPIRBasicBlock. All successors of
973973
/// VPBB, if any, are rewired to the new VPIRBasicBlock.
974974
static void replaceVPBBWithIRVPBB(VPBasicBlock *VPBB, BasicBlock *IRBB) {
975-
VPIRBasicBlock *IRMiddleVPBB = new VPIRBasicBlock(IRBB);
975+
VPIRBasicBlock *IRVPBB = new VPIRBasicBlock(IRBB);
976976
for (auto &R : make_early_inc_range(*VPBB))
977-
R.moveBefore(*IRMiddleVPBB, IRMiddleVPBB->end());
977+
R.moveBefore(*IRVPBB, IRVPBB->end());
978978
VPBlockBase *PredVPBB = VPBB->getSinglePredecessor();
979979
VPBlockUtils::disconnectBlocks(PredVPBB, VPBB);
980-
VPBlockUtils::connectBlocks(PredVPBB, IRMiddleVPBB);
980+
VPBlockUtils::connectBlocks(PredVPBB, IRVPBB);
981981
for (auto *Succ : to_vector(VPBB->getSuccessors())) {
982-
VPBlockUtils::connectBlocks(IRMiddleVPBB, Succ);
982+
VPBlockUtils::connectBlocks(IRVPBB, Succ);
983983
VPBlockUtils::disconnectBlocks(VPBB, Succ);
984984
}
985985
delete VPBB;

0 commit comments

Comments
 (0)