[llvm-mca] Remove unused InstRef formal from pre and post execute callbacks. NFC.

llvm-svn: 337077
diff --git a/llvm/tools/llvm-mca/FetchStage.cpp b/llvm/tools/llvm-mca/FetchStage.cpp
index 654f177..3da117c 100644
--- a/llvm/tools/llvm-mca/FetchStage.cpp
+++ b/llvm/tools/llvm-mca/FetchStage.cpp
@@ -29,7 +29,7 @@
   return true;
 }
 
-void FetchStage::postExecute(const InstRef &IR) { SM.updateNext(); }
+void FetchStage::postExecute() { SM.updateNext(); }
 
 void FetchStage::cycleEnd() {
   // Find the first instruction which hasn't been retired.
diff --git a/llvm/tools/llvm-mca/FetchStage.h b/llvm/tools/llvm-mca/FetchStage.h
index c824b32..620075d 100644
--- a/llvm/tools/llvm-mca/FetchStage.h
+++ b/llvm/tools/llvm-mca/FetchStage.h
@@ -36,7 +36,7 @@
 
   bool hasWorkToComplete() const override final;
   bool execute(InstRef &IR) override final;
-  void postExecute(const InstRef &IR) override final;
+  void postExecute() override final;
   void cycleEnd() override final;
 };
 
diff --git a/llvm/tools/llvm-mca/Pipeline.cpp b/llvm/tools/llvm-mca/Pipeline.cpp
index eb95b0c..7c937e7 100644
--- a/llvm/tools/llvm-mca/Pipeline.cpp
+++ b/llvm/tools/llvm-mca/Pipeline.cpp
@@ -47,14 +47,14 @@
   return true;
 }
 
-void Pipeline::preExecuteStages(const InstRef &IR) {
+void Pipeline::preExecuteStages() {
   for (const std::unique_ptr<Stage> &S : Stages)
-    S->preExecute(IR);
+    S->preExecute();
 }
 
-void Pipeline::postExecuteStages(const InstRef &IR) {
+void Pipeline::postExecuteStages() {
   for (const std::unique_ptr<Stage> &S : Stages)
-    S->postExecute(IR);
+    S->postExecute();
 }
 
 void Pipeline::run() {
@@ -75,10 +75,10 @@
   // Continue executing this cycle until any stage claims it cannot make
   // progress.
   while (true) {
-    preExecuteStages(IR);
+    preExecuteStages();
     if (!executeStages(IR))
       break;
-    postExecuteStages(IR);
+    postExecuteStages();
   }
 
   for (auto &S : Stages)
diff --git a/llvm/tools/llvm-mca/Pipeline.h b/llvm/tools/llvm-mca/Pipeline.h
index 6bafc24..6916e42 100644
--- a/llvm/tools/llvm-mca/Pipeline.h
+++ b/llvm/tools/llvm-mca/Pipeline.h
@@ -59,9 +59,9 @@
   std::set<HWEventListener *> Listeners;
   unsigned Cycles;
 
-  void preExecuteStages(const InstRef &IR);
+  void preExecuteStages();
   bool executeStages(InstRef &IR);
-  void postExecuteStages(const InstRef &IR);
+  void postExecuteStages();
   void runCycle();
 
   bool hasWorkToProcess();
diff --git a/llvm/tools/llvm-mca/Stage.h b/llvm/tools/llvm-mca/Stage.h
index 2821662..9dbdcd8 100644
--- a/llvm/tools/llvm-mca/Stage.h
+++ b/llvm/tools/llvm-mca/Stage.h
@@ -50,12 +50,12 @@
 
   /// Called prior to executing the list of stages.
   /// This can be called multiple times per cycle.
-  virtual void preExecute(const InstRef &IR) {}
+  virtual void preExecute() {}
 
   /// Called as a cleanup and finalization phase after each execution.
   /// This will only be called if all stages return a success from their
   /// execute callback.  This can be called multiple times per cycle.
-  virtual void postExecute(const InstRef &IR) {}
+  virtual void postExecute() {}
 
   /// The primary action that this stage performs.
   /// Returning false prevents successor stages from having their 'execute'