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/Scheduler.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'llvm/tools/llvm-mca/Scheduler.h') diff --git a/llvm/tools/llvm-mca/Scheduler.h b/llvm/tools/llvm-mca/Scheduler.h index 4a3d69e076d..69bd2bf9fc2 100644 --- a/llvm/tools/llvm-mca/Scheduler.h +++ b/llvm/tools/llvm-mca/Scheduler.h @@ -396,7 +396,6 @@ public: bool mustIssueImmediately(const InstrDesc &Desc); bool canBeIssued(const InstrDesc &Desc) const; - double getRThroughput(const InstrDesc &Desc) const; void issueInstruction( unsigned Index, const InstrDesc &Desc, @@ -532,10 +531,6 @@ public: Event canBeDispatched(const InstrDesc &Desc) const; Instruction *scheduleInstruction(unsigned Idx, Instruction *MCIS); - double getRThroughput(const InstrDesc &Desc) const { - return Resources->getRThroughput(Desc); - } - void cycleEvent(unsigned Cycle); void getBuffersUsage(std::vector &Usage) const { -- cgit v1.2.3