summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca/Backend.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/tools/llvm-mca/Backend.cpp')
-rw-r--r--llvm/tools/llvm-mca/Backend.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/tools/llvm-mca/Backend.cpp b/llvm/tools/llvm-mca/Backend.cpp
index 890cbc14d86..62e239524dd 100644
--- a/llvm/tools/llvm-mca/Backend.cpp
+++ b/llvm/tools/llvm-mca/Backend.cpp
@@ -31,12 +31,12 @@ void Backend::addEventListener(HWEventListener *Listener) {
void Backend::runCycle(unsigned Cycle) {
notifyCycleBegin(Cycle);
- if (!SM->hasNext()) {
+ if (!SM.hasNext()) {
notifyCycleEnd(Cycle);
return;
}
- InstRef IR = SM->peekNext();
+ InstRef IR = SM.peekNext();
const InstrDesc *Desc = &IB->getOrCreateInstrDesc(STI, *IR.second);
while (DU->isAvailable(Desc->NumMicroOps) && DU->canDispatch(*Desc)) {
Instruction *NewIS = IB->createInstruction(STI, *DU, IR.first, *IR.second);
@@ -49,12 +49,12 @@ void Backend::runCycle(unsigned Cycle) {
notifyInstructionExecuted(IR.first);
// Check if we have dispatched all the instructions.
- SM->updateNext();
- if (!SM->hasNext())
+ SM.updateNext();
+ if (!SM.hasNext())
break;
// Prepare for the next round.
- IR = SM->peekNext();
+ IR = SM.peekNext();
Desc = &IB->getOrCreateInstrDesc(STI, *IR.second);
}
OpenPOWER on IntegriCloud