[llvm] 5d0d9eb - [NFC][BP] Remove unused parameter from function (#86333)
via llvm-commits
llvm-commits at lists.llvm.org
Fri Mar 22 14:47:35 PDT 2024
Author: Ellis Hoag
Date: 2024-03-22T14:47:31-07:00
New Revision: 5d0d9eb52dbb3bcf6f500c7b18d58c8bdf6659ce
URL: https://github.com/llvm/llvm-project/commit/5d0d9eb52dbb3bcf6f500c7b18d58c8bdf6659ce
DIFF: https://github.com/llvm/llvm-project/commit/5d0d9eb52dbb3bcf6f500c7b18d58c8bdf6659ce.diff
LOG: [NFC][BP] Remove unused parameter from function (#86333)
Remove the unused parameter `RecDepth` from `runIterations()`.
Added:
Modified:
llvm/include/llvm/Support/BalancedPartitioning.h
llvm/lib/Support/BalancedPartitioning.cpp
Removed:
################################################################################
diff --git a/llvm/include/llvm/Support/BalancedPartitioning.h b/llvm/include/llvm/Support/BalancedPartitioning.h
index 9738e742f7f1e9..539d157343fbe3 100644
--- a/llvm/include/llvm/Support/BalancedPartitioning.h
+++ b/llvm/include/llvm/Support/BalancedPartitioning.h
@@ -142,9 +142,8 @@ class BalancedPartitioning {
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
diff --git a/llvm/lib/Support/BalancedPartitioning.cpp b/llvm/lib/Support/BalancedPartitioning.cpp
index f4254b50d26c91..141f0034a23f04 100644
--- a/llvm/lib/Support/BalancedPartitioning.cpp
+++ b/llvm/lib/Support/BalancedPartitioning.cpp
@@ -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());
More information about the llvm-commits
mailing list