diff options
author | Andrew Trick <atrick@apple.com> | 2012-11-12 21:28:10 +0000 |
---|---|---|
committer | Andrew Trick <atrick@apple.com> | 2012-11-12 21:28:10 +0000 |
commit | a7d2d564d918a9cb9105d3b2b4176b45af36a20e (patch) | |
tree | 2c05d4f5e00bd17405e1b55c3257a608bbe9e85a | |
parent | 86c88c938aec8006d2ce83325ec1f31e1154620b (diff) | |
download | llvm-a7d2d564d918a9cb9105d3b2b4176b45af36a20e.tar.gz llvm-a7d2d564d918a9cb9105d3b2b4176b45af36a20e.tar.bz2 llvm-a7d2d564d918a9cb9105d3b2b4176b45af36a20e.tar.xz |
misched: rename interfaceto avoid gcc warnings
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167753 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | include/llvm/Target/TargetInstrInfo.h | 6 | ||||
-rw-r--r-- | lib/CodeGen/MachineScheduler.cpp | 3 |
2 files changed, 4 insertions, 5 deletions
diff --git a/include/llvm/Target/TargetInstrInfo.h b/include/llvm/Target/TargetInstrInfo.h index 97fddeeca1..95d2b916aa 100644 --- a/include/llvm/Target/TargetInstrInfo.h +++ b/include/llvm/Target/TargetInstrInfo.h @@ -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; } diff --git a/lib/CodeGen/MachineScheduler.cpp b/lib/CodeGen/MachineScheduler.cpp index b05d7263cd..ee8138c0c4 100644 --- a/lib/CodeGen/MachineScheduler.cpp +++ b/lib/CodeGen/MachineScheduler.cpp @@ -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(" |