mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-23 19:23:23 +01:00
misched: fall-back to a target hook for instr bundles.
llvm-svn: 165606
This commit is contained in:
parent
79d929fd43
commit
9ba6a8d7ea
@ -203,10 +203,11 @@ unsigned TargetSchedModel::computeOperandLatency(
|
||||
}
|
||||
|
||||
unsigned TargetSchedModel::computeInstrLatency(const MachineInstr *MI) const {
|
||||
if (hasInstrItineraries()) {
|
||||
// For the itinerary model, fall back to the old subtarget hook.
|
||||
// For the itinerary model, fall back to the old subtarget hook.
|
||||
// Allow subtargets to compute Bundle latencies outside the machine model.
|
||||
if (hasInstrItineraries() || MI->isBundle())
|
||||
return TII->getInstrLatency(&InstrItins, MI);
|
||||
}
|
||||
|
||||
if (hasInstrSchedModel()) {
|
||||
unsigned Latency = 0;
|
||||
const MCSchedClassDesc *SCDesc = resolveSchedClass(MI);
|
||||
|
Loading…
Reference in New Issue
Block a user