summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/Backend.h
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mca/Backend.h')
-rw-r--r--llvm/tools/llvm-mca/Backend.h8
1 files changed, 2 insertions, 6 deletions
diff --git a/llvm/tools/llvm-mca/Backend.h b/llvm/tools/llvm-mca/Backend.h
index d294b610731..fee3ca2a948 100644
--- a/llvm/tools/llvm-mca/Backend.h
+++ b/llvm/tools/llvm-mca/Backend.h
@@ -80,13 +80,9 @@ public:
runCycle(Cycles++);
}
- const Instruction &getInstruction(unsigned Index) const {
- const auto It = Instructions.find(Index);
- assert(It != Instructions.end() && "no running instructions with index");
- assert(It->second);
- return *It->second;
+ void eraseInstruction(const InstRef &IR) {
+ Instructions.erase(IR.getSourceIndex());
}
- void eraseInstruction(unsigned Index) { Instructions.erase(Index); }
void addEventListener(HWEventListener *Listener);
void notifyCycleBegin(unsigned Cycle);
OpenPOWER on IntegriCloud