llvm.org GIT mirror llvm / 82d46ae
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 Andrew Trick 8 years ago
1 changed file(s) with 4 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
202202 }
203203
204204 unsigned TargetSchedModel::computeInstrLatency(const MachineInstr *MI) const {
205 if (hasInstrItineraries()) {
206 // For the itinerary model, fall back to the old subtarget hook.
205 // For the itinerary model, fall back to the old subtarget hook.
206 // Allow subtargets to compute Bundle latencies outside the machine model.
207 if (hasInstrItineraries() || MI->isBundle())
207208 return TII->getInstrLatency(&InstrItins, MI);
208 }
209
209210 if (hasInstrSchedModel()) {
210211 unsigned Latency = 0;
211212 const MCSchedClassDesc *SCDesc = resolveSchedClass(MI);