diff options
author | Matthias Braun <matze@braunis.de> | 2015-06-13 03:42:11 +0000 |
---|---|---|
committer | Matthias Braun <matze@braunis.de> | 2015-06-13 03:42:11 +0000 |
commit | 88e213159a3d0650db1a1ca4cd840e4bd87b12d2 (patch) | |
tree | b13dd786127940ce2fdd60cc44a869d7965cbc8e /llvm/lib/Target/PowerPC/PPCInstrInfo.h | |
parent | 45bb48ea197fe496865387120c7c55b56f0717d6 (diff) | |
download | bcm5719-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.h | 2 |
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 |