Skip to content

Commit e3af202

Browse files
committed
[VPlan] Remove unused IsReplicator arg from createVPRegionBlock (NFC).
The argument is always true, remove it.
1 parent ca006ee commit e3af202

File tree

2 files changed

+6
-8
lines changed

2 files changed

+6
-8
lines changed

llvm/lib/Transforms/Vectorize/VPlan.h

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4188,13 +4188,11 @@ class VPlan {
41884188
return VPB;
41894189
}
41904190

4191-
/// Create a new VPRegionBlock with \p Name and entry and exiting blocks set
4192-
/// to nullptr. If \p IsReplicator is true, the region is a replicate region.
4193-
/// The returned block is owned by the VPlan and deleted once the VPlan is
4194-
/// destroyed.
4195-
VPRegionBlock *createVPRegionBlock(const std::string &Name = "",
4196-
bool IsReplicator = false) {
4197-
auto *VPB = new VPRegionBlock(Name, IsReplicator);
4191+
/// Create a new loop VPRegionBlock with \p Name and entry and exiting blocks set
4192+
/// to nullptr. The returned block is owned by the VPlan and deleted once the
4193+
/// VPlan is destroyed.
4194+
VPRegionBlock *createVPRegionBlock(const std::string &Name = "") {
4195+
auto *VPB = new VPRegionBlock(Name);
41984196
CreatedBlocks.push_back(VPB);
41994197
return VPB;
42004198
}

llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ static void createLoopRegion(VPlan &Plan, VPBlockBase *HeaderVPB) {
411411
// LatchExitVPB, taking care to preserve the original predecessor & successor
412412
// order of blocks. Set region entry and exiting after both HeaderVPB and
413413
// LatchVPBB have been disconnected from their predecessors/successors.
414-
auto *R = Plan.createVPRegionBlock("", false /*isReplicator*/);
414+
auto *R = Plan.createVPRegionBlock();
415415
VPBlockUtils::insertOnEdge(LatchVPBB, LatchExitVPB, R);
416416
VPBlockUtils::disconnectBlocks(LatchVPBB, R);
417417
VPBlockUtils::connectBlocks(PreheaderVPBB, R);

0 commit comments

Comments
 (0)