summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/PowerPC/PPCInstrInfo.h
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2015-06-13 03:42:11 +0000
committerMatthias Braun <matze@braunis.de>2015-06-13 03:42:11 +0000
commit88e213159a3d0650db1a1ca4cd840e4bd87b12d2 (patch)
treeb13dd786127940ce2fdd60cc44a869d7965cbc8e /llvm/lib/Target/PowerPC/PPCInstrInfo.h
parent45bb48ea197fe496865387120c7c55b56f0717d6 (diff)
downloadbcm5719-llvm-88e213159a3d0650db1a1ca4cd840e4bd87b12d2.tar.gz
bcm5719-llvm-88e213159a3d0650db1a1ca4cd840e4bd87b12d2.zip
MachineLICM: Use TargetSchedModel instead of just itineraries
This will use Itinieraries if available, but will also work if just a MCSchedModel is available. Differential Revision: http://reviews.llvm.org/D10428 llvm-svn: 239658
Diffstat (limited to 'llvm/lib/Target/PowerPC/PPCInstrInfo.h')
-rw-r--r--llvm/lib/Target/PowerPC/PPCInstrInfo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/PowerPC/PPCInstrInfo.h b/llvm/lib/Target/PowerPC/PPCInstrInfo.h
index b318b177676..e2d6346aa53 100644
--- a/llvm/lib/Target/PowerPC/PPCInstrInfo.h
+++ b/llvm/lib/Target/PowerPC/PPCInstrInfo.h
@@ -106,7 +106,7 @@ public:
UseNode, UseIdx);
}
- bool hasLowDefLatency(const InstrItineraryData *ItinData,
+ bool hasLowDefLatency(const TargetSchedModel &SchedModel,
const MachineInstr *DefMI,
unsigned DefIdx) const override {
// Machine LICM should hoist all instructions in low-register-pressure
OpenPOWER on IntegriCloud