summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/Scheduler.h
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-03-13 17:24:32 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-03-13 17:24:32 +0000
commitb52297508ef8c6801c194b90407479e093a00ed5 (patch)
tree4aa388b8f64a76f80ac0711025f5cda71b08eff9 /llvm/tools/llvm-mca/Scheduler.h
parent9855b3938093eb4a3663474a42a1a694327816c0 (diff)
downloadbcm5719-llvm-b52297508ef8c6801c194b90407479e093a00ed5.tar.gz
bcm5719-llvm-b52297508ef8c6801c194b90407479e093a00ed5.zip
[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
Diffstat (limited to 'llvm/tools/llvm-mca/Scheduler.h')
-rw-r--r--llvm/tools/llvm-mca/Scheduler.h5
1 files changed, 0 insertions, 5 deletions
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<BufferUsageEntry> &Usage) const {
OpenPOWER on IntegriCloud