diff options
author | Kazu Hirata <kazu@google.com> | 2021-08-06 08:26:55 -0700 |
---|---|---|
committer | Kazu Hirata <kazu@google.com> | 2021-08-06 08:26:55 -0700 |
commit | 276be84d0abc1a730df956417a89f35b75afd59b (patch) | |
tree | 4e68d16bfebf581244ad0acdba3930b51155ca21 /llvm/lib/CodeGen/TargetInstrInfo.cpp | |
parent | c4c103097660b7b130eaf134919516726d7bd9e6 (diff) | |
download | llvm-276be84d0abc1a730df956417a89f35b75afd59b.zip llvm-276be84d0abc1a730df956417a89f35b75afd59b.tar.gz llvm-276be84d0abc1a730df956417a89f35b75afd59b.tar.bz2 |
[CodeGen] Remove computeDefOperandLatency (NFC)
The last use was removed on Oct 9, 2016 in commit
5c924d71173afc93aa0f0d115bd445a7496f4294.
Diffstat (limited to 'llvm/lib/CodeGen/TargetInstrInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/TargetInstrInfo.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/llvm/lib/CodeGen/TargetInstrInfo.cpp b/llvm/lib/CodeGen/TargetInstrInfo.cpp index 2e4a656..1eab8e7 100644 --- a/llvm/lib/CodeGen/TargetInstrInfo.cpp +++ b/llvm/lib/CodeGen/TargetInstrInfo.cpp @@ -1264,22 +1264,6 @@ int TargetInstrInfo::getOperandLatency(const InstrItineraryData *ItinData, return ItinData->getOperandLatency(DefClass, DefIdx, UseClass, UseIdx); } -/// If we can determine the operand latency from the def only, without itinerary -/// lookup, do so. Otherwise return -1. -int TargetInstrInfo::computeDefOperandLatency( - const InstrItineraryData *ItinData, const MachineInstr &DefMI) const { - - // Let the target hook getInstrLatency handle missing itineraries. - if (!ItinData) - return getInstrLatency(ItinData, DefMI); - - if(ItinData->isEmpty()) - return defaultDefLatency(ItinData->SchedModel, DefMI); - - // ...operand lookup required - return -1; -} - bool TargetInstrInfo::getRegSequenceInputs( const MachineInstr &MI, unsigned DefIdx, SmallVectorImpl<RegSubRegPairAndIdx> &InputRegs) const { |