Lines Matching refs:InsInstrs

96   unsigned getDepth(SmallVectorImpl<MachineInstr *> &InsInstrs,
104 SmallVectorImpl<MachineInstr *> &InsInstrs,
109 SmallVectorImpl<MachineInstr *> &InsInstrs,
114 SmallVectorImpl<MachineInstr *> &InsInstrs,
120 SmallVectorImpl<MachineInstr *> &InsInstrs,
207 MachineCombiner::getDepth(SmallVectorImpl<MachineInstr *> &InsInstrs, in getDepth() argument
215 for (auto *InstrPtr : InsInstrs) { // for each Use in getDepth()
228 MachineInstr *DefInstr = InsInstrs[II->second]; in getDepth()
258 unsigned NewRootIdx = InsInstrs.size() - 1; in getDepth()
320 MachineInstr &MI, SmallVectorImpl<MachineInstr *> &InsInstrs, in getLatenciesForInstrSequences() argument
323 assert(!InsInstrs.empty() && "Only support sequences that insert instrs."); in getLatenciesForInstrSequences()
326 MachineInstr *NewRoot = InsInstrs.back(); in getLatenciesForInstrSequences()
327 for (unsigned i = 0; i < InsInstrs.size() - 1; i++) in getLatenciesForInstrSequences()
328 NewRootLatency += TSchedModel.computeInstrLatency(InsInstrs[i]); in getLatenciesForInstrSequences()
340 SmallVectorImpl<MachineInstr *> &InsInstrs, in reduceRegisterPressure() argument
357 SmallVectorImpl<MachineInstr *> &InsInstrs, in improvesCriticalPathLen() argument
363 getDepth(InsInstrs, InstrIdxForVirtReg, BlockTrace, *MBB); in improvesCriticalPathLen()
390 getLatenciesForInstrSequences(*Root, InsInstrs, DelInstrs, BlockTrace); in improvesCriticalPathLen()
392 NewRootLatency = TSchedModel.computeInstrLatency(InsInstrs.back()); in improvesCriticalPathLen()
430 SmallVectorImpl<MachineInstr *> &InsInstrs, in preservesResourceLen() argument
446 instr2instrSC(InsInstrs, InsInstrsSC); in preservesResourceLen()
485 SmallVectorImpl<MachineInstr *> &InsInstrs, in insertDeleteInstructions() argument
498 TII->finalizeInsInstrs(MI, Pattern, InsInstrs); in insertDeleteInstructions()
500 for (auto *InstrPtr : InsInstrs) in insertDeleteInstructions()
515 for (auto *InstrPtr : InsInstrs) in insertDeleteInstructions()
531 SmallVector<MachineInstr *, 16> InsInstrs; in verifyPatternOrder() local
534 TII->genAlternativeCodeSequence(Root, P, InsInstrs, DelInstrs, in verifyPatternOrder()
539 if (InsInstrs.empty() || !TSchedModel.hasInstrSchedModelOrItineraries()) in verifyPatternOrder()
544 Root, InsInstrs, DelInstrs, TraceEnsemble->getTrace(MBB)); in verifyPatternOrder()
616 SmallVector<MachineInstr *, 16> InsInstrs; in combineInstructions() local
619 TII->genAlternativeCodeSequence(MI, P, InsInstrs, DelInstrs, in combineInstructions()
624 if (InsInstrs.empty()) in combineInstructions()
634 for (auto const *InstrPtr : InsInstrs) in combineInstructions()
653 if (reduceRegisterPressure(MI, MBB, InsInstrs, DelInstrs, P)) { in combineInstructions()
655 insertDeleteInstructions(MBB, MI, InsInstrs, DelInstrs, TraceEnsemble, in combineInstructions()
668 insertDeleteInstructions(MBB, MI, InsInstrs, DelInstrs, TraceEnsemble, in combineInstructions()
673 } else if (OptForSize && InsInstrs.size() < DelInstrs.size()) { in combineInstructions()
675 << InsInstrs.size() << " < " in combineInstructions()
677 insertDeleteInstructions(MBB, MI, InsInstrs, DelInstrs, TraceEnsemble, in combineInstructions()
690 if (improvesCriticalPathLen(MBB, &MI, BlockTrace, InsInstrs, DelInstrs, in combineInstructions()
693 preservesResourceLen(MBB, BlockTrace, InsInstrs, DelInstrs)) { in combineInstructions()
700 insertDeleteInstructions(MBB, MI, InsInstrs, DelInstrs, TraceEnsemble, in combineInstructions()
710 for (auto *InstrPtr : InsInstrs) in combineInstructions()