[llvm] e3af202 - [VPlan] Remove unused IsReplicator arg from createVPRegionBlock (NFC).
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Sun Jul 20 12:59:06 PDT 2025
Author: Florian Hahn
Date: 2025-07-20T20:58:25+01:00
New Revision: e3af202fd212a66700170717856a8fa9aa7ed426
URL: https://github.com/llvm/llvm-project/commit/e3af202fd212a66700170717856a8fa9aa7ed426
DIFF: https://github.com/llvm/llvm-project/commit/e3af202fd212a66700170717856a8fa9aa7ed426.diff
LOG: [VPlan] Remove unused IsReplicator arg from createVPRegionBlock (NFC).
The argument is always true, remove it.
Added:
Modified:
llvm/lib/Transforms/Vectorize/VPlan.h
llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Transforms/Vectorize/VPlan.h b/llvm/lib/Transforms/Vectorize/VPlan.h
index 204268e586b43..db40ce2d20b81 100644
--- a/llvm/lib/Transforms/Vectorize/VPlan.h
+++ b/llvm/lib/Transforms/Vectorize/VPlan.h
@@ -4188,13 +4188,11 @@ class VPlan {
return VPB;
}
- /// Create a new VPRegionBlock with \p Name and entry and exiting blocks set
- /// to nullptr. If \p IsReplicator is true, the region is a replicate region.
- /// The returned block is owned by the VPlan and deleted once the VPlan is
- /// destroyed.
- VPRegionBlock *createVPRegionBlock(const std::string &Name = "",
- bool IsReplicator = false) {
- auto *VPB = new VPRegionBlock(Name, IsReplicator);
+ /// Create a new loop VPRegionBlock with \p Name and entry and exiting blocks set
+ /// to nullptr. The returned block is owned by the VPlan and deleted once the
+ /// VPlan is destroyed.
+ VPRegionBlock *createVPRegionBlock(const std::string &Name = "") {
+ auto *VPB = new VPRegionBlock(Name);
CreatedBlocks.push_back(VPB);
return VPB;
}
diff --git a/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp b/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
index ba1f9aad6a9c6..faae8f15b0f6d 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanConstruction.cpp
@@ -411,7 +411,7 @@ static void createLoopRegion(VPlan &Plan, VPBlockBase *HeaderVPB) {
// LatchExitVPB, taking care to preserve the original predecessor & successor
// order of blocks. Set region entry and exiting after both HeaderVPB and
// LatchVPBB have been disconnected from their predecessors/successors.
- auto *R = Plan.createVPRegionBlock("", false /*isReplicator*/);
+ auto *R = Plan.createVPRegionBlock();
VPBlockUtils::insertOnEdge(LatchVPBB, LatchExitVPB, R);
VPBlockUtils::disconnectBlocks(LatchVPBB, R);
VPBlockUtils::connectBlocks(PreheaderVPBB, R);
More information about the llvm-commits
mailing list