[NFC][BP] Remove unused parameter from function (#86333)

Remove the unused parameter `RecDepth` from `runIterations()`.
This commit is contained in:
Ellis Hoag 2024-03-22 14:47:31 -07:00 committed by GitHub
parent 85af772f3b
commit 5d0d9eb52d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 5 deletions

View File

@ -142,9 +142,8 @@ private:
std::optional<BPThreadPool> &TP) const;
/// Run bisection iterations
void runIterations(const FunctionNodeRange Nodes, unsigned RecDepth,
unsigned LeftBucket, unsigned RightBucket,
std::mt19937 &RNG) const;
void runIterations(const FunctionNodeRange Nodes, unsigned LeftBucket,
unsigned RightBucket, std::mt19937 &RNG) const;
/// Run a bisection iteration to improve the optimization goal
/// \returns the total number of moved FunctionNodes

View File

@ -136,7 +136,7 @@ void BalancedPartitioning::bisect(const FunctionNodeRange Nodes,
// Split into two and assign to the left and right buckets
split(Nodes, LeftBucket);
runIterations(Nodes, RecDepth, LeftBucket, RightBucket, RNG);
runIterations(Nodes, LeftBucket, RightBucket, RNG);
// Split nodes wrt the resulting buckets
auto NodesMid =
@ -163,7 +163,7 @@ void BalancedPartitioning::bisect(const FunctionNodeRange Nodes,
}
void BalancedPartitioning::runIterations(const FunctionNodeRange Nodes,
unsigned RecDepth, unsigned LeftBucket,
unsigned LeftBucket,
unsigned RightBucket,
std::mt19937 &RNG) const {
unsigned NumNodes = std::distance(Nodes.begin(), Nodes.end());