From b52297508ef8c6801c194b90407479e093a00ed5 Mon Sep 17 00:00:00 2001 From: Andrea Di Biagio Date: Tue, 13 Mar 2018 17:24:32 +0000 Subject: [llvm-mca] Remove the logic that computes the reciprocal throughput, and make the SummaryView independent from the Backend. NFCI Since r327420, the tool can query the MCSchedModel interface to obtain the reciprocal throughput information. As a consequence, method `ResourceManager::getRThroughput`, and method `Backend::getRThroughput` are no longer needed. This patch simplifies the code by removing the custom RThroughput computation. This patch also refactors class SummaryView by removing the dependency with the Backend object. No functional change intended. llvm-svn: 327425 --- llvm/tools/llvm-mca/llvm-mca.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'llvm/tools/llvm-mca/llvm-mca.cpp') diff --git a/llvm/tools/llvm-mca/llvm-mca.cpp b/llvm/tools/llvm-mca/llvm-mca.cpp index 9492e2d763e..8acfd46b1f0 100644 --- a/llvm/tools/llvm-mca/llvm-mca.cpp +++ b/llvm/tools/llvm-mca/llvm-mca.cpp @@ -324,8 +324,8 @@ int main(int argc, char **argv) { std::unique_ptr Printer = llvm::make_unique(*B); - std::unique_ptr SV = llvm::make_unique( - *B, *IP, S->getNumIterations(), S->size(), Width); + std::unique_ptr SV = + llvm::make_unique(*STI, *MCII, *S, *IP, Width); Printer->addView(std::move(SV)); if (PrintModeVerbose) { -- cgit v1.2.3