diff options
author | Ellis Hoag <ellis.sparky.hoag@gmail.com> | 2024-09-26 10:28:06 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-26 10:28:06 -0700 |
commit | fbec1c2a08ce2ae9750ddf3cecc86c5dd2bbc9d8 (patch) | |
tree | a2d8b77cb926539c24fe1380ce4a3aa7ab926fb7 /llvm/lib/CodeGen/MachineBlockPlacement.cpp | |
parent | bc6bd3bc1e99c7ec9e22dff23b4f4373fa02cae3 (diff) | |
download | llvm-fbec1c2a08ce2ae9750ddf3cecc86c5dd2bbc9d8.zip llvm-fbec1c2a08ce2ae9750ddf3cecc86c5dd2bbc9d8.tar.gz llvm-fbec1c2a08ce2ae9750ddf3cecc86c5dd2bbc9d8.tar.bz2 |
[NFC][CodeLayout] Remove unused parameter (#110145)
The `NodeCounts` parameter of `calcExtTspScore()` is unused, so remove
it.
Use `SmallVector` since arrays are expected to be small since they
represent MBBs.
Diffstat (limited to 'llvm/lib/CodeGen/MachineBlockPlacement.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineBlockPlacement.cpp | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/llvm/lib/CodeGen/MachineBlockPlacement.cpp b/llvm/lib/CodeGen/MachineBlockPlacement.cpp index a52c82d..7807875 100644 --- a/llvm/lib/CodeGen/MachineBlockPlacement.cpp +++ b/llvm/lib/CodeGen/MachineBlockPlacement.cpp @@ -3619,9 +3619,8 @@ void MachineBlockPlacement::applyExtTsp() { << " with profile = " << F->getFunction().hasProfileData() << " (" << F->getName().str() << ")" << "\n"); - LLVM_DEBUG( - dbgs() << format(" original layout score: %0.2f\n", - calcExtTspScore(BlockSizes, BlockCounts, JumpCounts))); + LLVM_DEBUG(dbgs() << format(" original layout score: %0.2f\n", + calcExtTspScore(BlockSizes, JumpCounts))); // Run the layout algorithm. auto NewOrder = computeExtTspLayout(BlockSizes, BlockCounts, JumpCounts); @@ -3630,9 +3629,9 @@ void MachineBlockPlacement::applyExtTsp() { for (uint64_t Node : NewOrder) { NewBlockOrder.push_back(CurrentBlockOrder[Node]); } - LLVM_DEBUG(dbgs() << format(" optimized layout score: %0.2f\n", - calcExtTspScore(NewOrder, BlockSizes, BlockCounts, - JumpCounts))); + LLVM_DEBUG( + dbgs() << format(" optimized layout score: %0.2f\n", + calcExtTspScore(NewOrder, BlockSizes, JumpCounts))); // Assign new block order. assignBlockOrder(NewBlockOrder); |