Skip to content

Commit 5d0d9eb

Browse files
authored
[NFC][BP] Remove unused parameter from function (#86333)
Remove the unused parameter `RecDepth` from `runIterations()`.
1 parent 85af772 commit 5d0d9eb

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

llvm/include/llvm/Support/BalancedPartitioning.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -142,9 +142,8 @@ class BalancedPartitioning {
142142
std::optional<BPThreadPool> &TP) const;
143143

144144
/// Run bisection iterations
145-
void runIterations(const FunctionNodeRange Nodes, unsigned RecDepth,
146-
unsigned LeftBucket, unsigned RightBucket,
147-
std::mt19937 &RNG) const;
145+
void runIterations(const FunctionNodeRange Nodes, unsigned LeftBucket,
146+
unsigned RightBucket, std::mt19937 &RNG) const;
148147

149148
/// Run a bisection iteration to improve the optimization goal
150149
/// \returns the total number of moved FunctionNodes

llvm/lib/Support/BalancedPartitioning.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ void BalancedPartitioning::bisect(const FunctionNodeRange Nodes,
136136
// Split into two and assign to the left and right buckets
137137
split(Nodes, LeftBucket);
138138

139-
runIterations(Nodes, RecDepth, LeftBucket, RightBucket, RNG);
139+
runIterations(Nodes, LeftBucket, RightBucket, RNG);
140140

141141
// Split nodes wrt the resulting buckets
142142
auto NodesMid =
@@ -163,7 +163,7 @@ void BalancedPartitioning::bisect(const FunctionNodeRange Nodes,
163163
}
164164

165165
void BalancedPartitioning::runIterations(const FunctionNodeRange Nodes,
166-
unsigned RecDepth, unsigned LeftBucket,
166+
unsigned LeftBucket,
167167
unsigned RightBucket,
168168
std::mt19937 &RNG) const {
169169
unsigned NumNodes = std::distance(Nodes.begin(), Nodes.end());

0 commit comments

Comments
 (0)