summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/InstructionTables.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mca/InstructionTables.cpp')
-rw-r--r--llvm/tools/llvm-mca/InstructionTables.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/tools/llvm-mca/InstructionTables.cpp b/llvm/tools/llvm-mca/InstructionTables.cpp
index 652ef201388..c7cce7cafa0 100644
--- a/llvm/tools/llvm-mca/InstructionTables.cpp
+++ b/llvm/tools/llvm-mca/InstructionTables.cpp
@@ -39,9 +39,8 @@ void InstructionTables::run() {
if (!Resource.second.size())
continue;
double Cycles = static_cast<double>(Resource.second.size());
- unsigned Index =
- std::distance(Masks.begin(), std::find(Masks.begin(), Masks.end(),
- Resource.first));
+ unsigned Index = std::distance(
+ Masks.begin(), std::find(Masks.begin(), Masks.end(), Resource.first));
const MCProcResourceDesc &ProcResource = *SM.getProcResource(Index);
unsigned NumUnits = ProcResource.NumUnits;
if (!ProcResource.SubUnitsIdxBegin) {
@@ -73,7 +72,7 @@ void InstructionTables::run() {
InstRef IR(SR.first, Inst.get());
HWInstructionIssuedEvent Event(IR, UsedResources);
for (std::unique_ptr<View> &Listener : Views)
- Listener->onInstructionEvent(Event);
+ Listener->onEvent(Event);
S.updateNext();
}
}
OpenPOWER on IntegriCloud