summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatt Davis <Matthew.Davis@sony.com>2018-04-26 22:30:40 +0000
committerMatt Davis <Matthew.Davis@sony.com>2018-04-26 22:30:40 +0000
commitad78e6673c77fa90a686f364bf2b3ce902aea848 (patch)
tree965af56a86f2bc18b35aa4d9fa1649602b6e9d27
parent1b1f97ac6091698ffd067e3cf3f102b68f43c192 (diff)
downloadbcm5719-llvm-ad78e6673c77fa90a686f364bf2b3ce902aea848.tar.gz
bcm5719-llvm-ad78e6673c77fa90a686f364bf2b3ce902aea848.zip
[MCA] [NFC] Remove unused Index formal from ResourceManager::issueInstruction
Summary: The instruction index was never referenced in the body. Just a minor cleanup. Reviewers: andreadb Reviewed By: andreadb Subscribers: javed.absar, gbedwell, llvm-commits Differential Revision: https://reviews.llvm.org/D46142 llvm-svn: 331001
-rw-r--r--llvm/tools/llvm-mca/Scheduler.cpp4
-rw-r--r--llvm/tools/llvm-mca/Scheduler.h2
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/tools/llvm-mca/Scheduler.cpp b/llvm/tools/llvm-mca/Scheduler.cpp
index 77c6745684a..ead32260ec5 100644
--- a/llvm/tools/llvm-mca/Scheduler.cpp
+++ b/llvm/tools/llvm-mca/Scheduler.cpp
@@ -179,7 +179,7 @@ bool ResourceManager::mustIssueImmediately(const InstrDesc &Desc) {
}
void ResourceManager::issueInstruction(
- unsigned Index, const InstrDesc &Desc,
+ const InstrDesc &Desc,
SmallVectorImpl<std::pair<ResourceRef, double>> &Pipes) {
for (const std::pair<uint64_t, ResourceUsage> &R : Desc.Resources) {
const CycleSegment &CS = R.second.CS;
@@ -350,7 +350,7 @@ void Scheduler::issueInstructionImpl(
// Issue the instruction and collect all the consumed resources
// into a vector. That vector is then used to notify the listener.
- Resources->issueInstruction(InstrIndex, D, UsedResources);
+ Resources->issueInstruction(D, UsedResources);
// Notify the instruction that it started executing.
// This updates the internal state of each write.
diff --git a/llvm/tools/llvm-mca/Scheduler.h b/llvm/tools/llvm-mca/Scheduler.h
index 52957d9d0ef..f3b9a362ad1 100644
--- a/llvm/tools/llvm-mca/Scheduler.h
+++ b/llvm/tools/llvm-mca/Scheduler.h
@@ -362,7 +362,7 @@ public:
bool canBeIssued(const InstrDesc &Desc) const;
void issueInstruction(
- unsigned Index, const InstrDesc &Desc,
+ const InstrDesc &Desc,
llvm::SmallVectorImpl<std::pair<ResourceRef, double>> &Pipes);
void cycleEvent(llvm::SmallVectorImpl<ResourceRef> &ResourcesFreed);
OpenPOWER on IntegriCloud