]> granicus.if.org Git - llvm/commitdiff
Target: Remove unused arguments from overrideSchedPolicy, NFC
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 1 Jul 2016 00:23:27 +0000 (00:23 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Fri, 1 Jul 2016 00:23:27 +0000 (00:23 +0000)
TargetSubtargetInfo::overrideSchedPolicy takes two MachineInstr*
arguments (begin and end) that invite implicit conversions from
MachineInstrBundleIterator.  One option would be to change their type to
an iterator, but since they don't seem to have been used since the API
was added in 2010, I'm deleting the dead code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@274304 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/CodeGen/MachineScheduler.h
include/llvm/Target/TargetSubtargetInfo.h
lib/CodeGen/MachineScheduler.cpp
lib/Target/AArch64/AArch64Subtarget.cpp
lib/Target/AArch64/AArch64Subtarget.h
lib/Target/AMDGPU/AMDGPUSubtarget.cpp
lib/Target/AMDGPU/AMDGPUSubtarget.h
lib/Target/PowerPC/PPCSubtarget.cpp
lib/Target/PowerPC/PPCSubtarget.h

index ceadc18a94c9e85bc26e13f3785a8d73da9699e3..06e99217903165b4432fdb81f0a25fab8466dd89 100644 (file)
@@ -66,8 +66,6 @@
 //
 // void <SubTarget>Subtarget::
 // overrideSchedPolicy(MachineSchedPolicy &Policy,
-//                     MachineInstr *begin,
-//                     MachineInstr *end,
 //                     unsigned NumRegionInstrs) const {
 //   Policy.<Flag> = true;
 // }
index 2dbfd52c90cb36397ac282497bb7c200a5545007..b929070484f905ddf052032f1477da39f00d8e7e 100644 (file)
@@ -153,7 +153,6 @@ public:
   /// scheduling heuristics (no custom MachineSchedStrategy) to make
   /// changes to the generic scheduling policy.
   virtual void overrideSchedPolicy(MachineSchedPolicy &Policy,
-                                   MachineInstr *begin, MachineInstr *end,
                                    unsigned NumRegionInstrs) const {}
 
   // \brief Perform target specific adjustments to the latency of a schedule
index a0ac320b9774cd3530720132e5302c80a3b0509e..d921e2977cc749d84f100d379892cb4430e06eb1 100644 (file)
@@ -2587,8 +2587,7 @@ void GenericScheduler::initPolicy(MachineBasicBlock::iterator Begin,
   RegionPolicy.OnlyBottomUp = true;
 
   // Allow the subtarget to override default policy.
-  MF.getSubtarget().overrideSchedPolicy(RegionPolicy, Begin, End,
-                                        NumRegionInstrs);
+  MF.getSubtarget().overrideSchedPolicy(RegionPolicy, NumRegionInstrs);
 
   // After subtarget overrides, apply command line options.
   if (!EnableRegPressure)
index cde6e4438fc7a13e34ece2f3addadc3e92229d92..b77793263950226c8fec7e57194125aaf58e505c 100644 (file)
@@ -138,8 +138,7 @@ const char *AArch64Subtarget::getBZeroEntry() const {
 }
 
 void AArch64Subtarget::overrideSchedPolicy(MachineSchedPolicy &Policy,
-                                         MachineInstr *begin, MachineInstr *end,
-                                         unsigned NumRegionInstrs) const {
+                                           unsigned NumRegionInstrs) const {
   // LNT run (at least on Cyclone) showed reasonably significant gains for
   // bi-directional scheduling. 253.perlbmk.
   Policy.OnlyTopDown = false;
index 6ea3ca7f6e05ccf341c9107340ca3f00689aad53..16a35405c8924b300441032ae1acd1c690a60f15 100644 (file)
@@ -245,8 +245,7 @@ public:
   /// returns null.
   const char *getBZeroEntry() const;
 
-  void overrideSchedPolicy(MachineSchedPolicy &Policy, MachineInstr *begin,
-                           MachineInstr *end,
+  void overrideSchedPolicy(MachineSchedPolicy &Policy,
                            unsigned NumRegionInstrs) const override;
 
   bool enableEarlyIfConversion() const override;
index b49ddc6ee7fd1196ec9cc79694538627251199ff..9843ddf590afb039eadc7189533f17532a4441a9 100644 (file)
@@ -206,8 +206,6 @@ unsigned R600Subtarget::getStackEntrySize() const {
 }
 
 void SISubtarget::overrideSchedPolicy(MachineSchedPolicy &Policy,
-                                      MachineInstr *begin,
-                                      MachineInstr *end,
                                       unsigned NumRegionInstrs) const {
   // Track register pressure so the scheduler can try to decrease
   // pressure once register usage is above the threshold defined by
index 9a0adf1b166ddc8bef688280bd7595bf51209491..44560f303272455cba9c4ad5f189db2d2073f188 100644 (file)
@@ -369,7 +369,6 @@ public:
   }
 
   void overrideSchedPolicy(MachineSchedPolicy &Policy,
-                           MachineInstr *Begin, MachineInstr *End,
                            unsigned NumRegionInstrs) const override;
 
   bool isVGPRSpillingEnabled(const Function& F) const;
index 23387759c92ca6c8538bee83d3c02f87822805a8..603f0fccc7c63d783725295da50278b6d1e8ed4e 100644 (file)
@@ -199,8 +199,6 @@ void PPCSubtarget::getCriticalPathRCs(RegClassVector &CriticalPathRCs) const {
 }
 
 void PPCSubtarget::overrideSchedPolicy(MachineSchedPolicy &Policy,
-                                       MachineInstr *begin,
-                                       MachineInstr *end,
                                        unsigned NumRegionInstrs) const {
   if (needsAggressiveScheduling(DarwinDirective)) {
     Policy.OnlyTopDown = false;
index 55500d3eb4bcab868d31829d1590ea3ce2320418..9fe286a3b7a9a27679ae0a0c9d5cd8744a46af75 100644 (file)
@@ -303,8 +303,6 @@ public:
   void getCriticalPathRCs(RegClassVector &CriticalPathRCs) const override;
 
   void overrideSchedPolicy(MachineSchedPolicy &Policy,
-                           MachineInstr *begin,
-                           MachineInstr *end,
                            unsigned NumRegionInstrs) const override;
   bool useAA() const override;