mirror of
https://github.com/RPCS3/llvm.git
synced 2025-02-27 14:16:09 +00:00
misched: fall-back to a target hook for instr bundles.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@165606 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
85c7b6108f
commit
82d46aec62
@ -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…
x
Reference in New Issue
Block a user