misched: rename interfaceto avoid gcc warnings
authorAndrew Trick <atrick@apple.com>
Mon, 12 Nov 2012 21:28:10 +0000 (21:28 +0000)
committerAndrew Trick <atrick@apple.com>
Mon, 12 Nov 2012 21:28:10 +0000 (21:28 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167753 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Target/TargetInstrInfo.h
lib/CodeGen/MachineScheduler.cpp

index 97fddeeca1c8493c6f646ae0b4026e51a1299ade..95d2b916aae99231ab94584a180946b1e169f923 100644 (file)
@@ -628,9 +628,9 @@ public:
     return false;
   }
 
-  virtual bool shouldScheduleLoadsNear(MachineInstr *FirstLdSt,
-                                       MachineInstr *SecondLdSt,
-                                       unsigned NumLoads) const {
+  virtual bool shouldClusterLoads(MachineInstr *FirstLdSt,
+                                  MachineInstr *SecondLdSt,
+                                  unsigned NumLoads) const {
     return false;
   }
 
index b05d7263cdf62e0fbd371a09cc34c9df4062ffc4..ee8138c0c49b5779d1859f7ce4ba00f8031254b6 100644 (file)
@@ -754,8 +754,7 @@ void LoadClusterMutation::clusterNeighboringLoads(ArrayRef<SUnit*> Loads,
 
     SUnit *SUa = LoadRecords[Idx].SU;
     SUnit *SUb = LoadRecords[Idx+1].SU;
-    if (TII->shouldScheduleLoadsNear(SUa->getInstr(), SUb->getInstr(),
-                                     ClusterLength)
+    if (TII->shouldClusterLoads(SUa->getInstr(), SUb->getInstr(), ClusterLength)
         && DAG->addEdge(SUb, SDep(SUa, SDep::Cluster))) {
 
       DEBUG(dbgs() << "Cluster loads SU(" << SUa->NodeNum << ") - SU("