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.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/tools/llvm-mca/Backend.cpp b/llvm/tools/llvm-mca/Backend.cpp
index 9077b6e6f6f..dc2b1dedfe6 100644
--- a/llvm/tools/llvm-mca/Backend.cpp
+++ b/llvm/tools/llvm-mca/Backend.cpp
@@ -37,10 +37,15 @@ void Backend::run() {
void Backend::runCycle(unsigned Cycle) {
notifyCycleBegin(Cycle);
+ // Update the stages before we do any processing for this cycle.
InstRef IR;
+ Retire->preExecute(IR);
Dispatch->preExecute(IR);
+
+ // This will execute scheduled instructions.
HWS->cycleEvent(); // TODO: This will eventually be stage-ified.
+ // Fetch instructions and dispatch them to the hardware.
while (Fetch->execute(IR)) {
if (!Dispatch->execute(IR))
break;
OpenPOWER on IntegriCloud