Skip to content

Commit 276be84

Browse files
[CodeGen] Remove computeDefOperandLatency (NFC)
The last use was removed on Oct 9, 2016 in commit 5c924d7.
1 parent c4c1030 commit 276be84

File tree

2 files changed

+0
-19
lines changed

2 files changed

+0
-19
lines changed

llvm/include/llvm/CodeGen/TargetInstrInfo.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1624,9 +1624,6 @@ class TargetInstrInfo : public MCInstrInfo {
16241624
unsigned defaultDefLatency(const MCSchedModel &SchedModel,
16251625
const MachineInstr &DefMI) const;
16261626

1627-
int computeDefOperandLatency(const InstrItineraryData *ItinData,
1628-
const MachineInstr &DefMI) const;
1629-
16301627
/// Return true if this opcode has high latency to its result.
16311628
virtual bool isHighLatencyDef(int opc) const { return false; }
16321629

llvm/lib/CodeGen/TargetInstrInfo.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1264,22 +1264,6 @@ int TargetInstrInfo::getOperandLatency(const InstrItineraryData *ItinData,
12641264
return ItinData->getOperandLatency(DefClass, DefIdx, UseClass, UseIdx);
12651265
}
12661266

1267-
/// If we can determine the operand latency from the def only, without itinerary
1268-
/// lookup, do so. Otherwise return -1.
1269-
int TargetInstrInfo::computeDefOperandLatency(
1270-
const InstrItineraryData *ItinData, const MachineInstr &DefMI) const {
1271-
1272-
// Let the target hook getInstrLatency handle missing itineraries.
1273-
if (!ItinData)
1274-
return getInstrLatency(ItinData, DefMI);
1275-
1276-
if(ItinData->isEmpty())
1277-
return defaultDefLatency(ItinData->SchedModel, DefMI);
1278-
1279-
// ...operand lookup required
1280-
return -1;
1281-
}
1282-
12831267
bool TargetInstrInfo::getRegSequenceInputs(
12841268
const MachineInstr &MI, unsigned DefIdx,
12851269
SmallVectorImpl<RegSubRegPairAndIdx> &InputRegs) const {

0 commit comments

Comments
 (0)