From 011684e920f48119fbf15b21dbc198be6b94ffc1 Mon Sep 17 00:00:00 2001 From: Andrew Trick Date: Mon, 12 Nov 2012 21:28:10 +0000 Subject: [PATCH] misched: rename interfaceto avoid gcc warnings llvm-svn: 167753 --- include/llvm/Target/TargetInstrInfo.h | 6 +++--- 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 97fddeeca1c..95d2b916aae 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 b05d7263cdf..ee8138c0c49 100644 --- a/lib/CodeGen/MachineScheduler.cpp +++ b/lib/CodeGen/MachineScheduler.cpp @@ -754,8 +754,7 @@ void LoadClusterMutation::clusterNeighboringLoads(ArrayRef 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("