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,
208 MachineCombiner::getDepth(SmallVectorImpl<MachineInstr *> &InsInstrs, in getDepth() argument
218 for (auto *InstrPtr : InsInstrs) { // for each Use in getDepth()
233 MachineInstr *DefInstr = InsInstrs[II->second]; in getDepth()
255 unsigned NewRootIdx = InsInstrs.size() - 1; in getDepth()
335 MachineInstr &MI, SmallVectorImpl<MachineInstr *> &InsInstrs, in getLatenciesForInstrSequences() argument
338 assert(!InsInstrs.empty() && "Only support sequences that insert instrs."); in getLatenciesForInstrSequences()
341 MachineInstr *NewRoot = InsInstrs.back(); in getLatenciesForInstrSequences()
342 for (unsigned i = 0; i < InsInstrs.size() - 1; i++) in getLatenciesForInstrSequences()
343 NewRootLatency += TSchedModel.computeInstrLatency(InsInstrs[i]); in getLatenciesForInstrSequences()
355 SmallVectorImpl<MachineInstr *> &InsInstrs, in reduceRegisterPressure() argument
373 SmallVectorImpl<MachineInstr *> &InsInstrs, in improvesCriticalPathLen() argument
381 unsigned NewRootDepth = getDepth(InsInstrs, InstrIdxForVirtReg, BlockTrace); in improvesCriticalPathLen()
407 getLatenciesForInstrSequences(*Root, InsInstrs, DelInstrs, BlockTrace); in improvesCriticalPathLen()
443 SmallVectorImpl<MachineInstr *> &InsInstrs, in preservesResourceLen() argument
459 instr2instrSC(InsInstrs, InsInstrsSC); in preservesResourceLen()
508 SmallVector<MachineInstr *, 16> InsInstrs, in insertDeleteInstructions() argument
522 TII->finalizeInsInstrs(MI, Pattern, InsInstrs); in insertDeleteInstructions()
524 for (auto *InstrPtr : InsInstrs) in insertDeleteInstructions()
539 for (auto *InstrPtr : InsInstrs) in insertDeleteInstructions()
555 SmallVector<MachineInstr *, 16> InsInstrs; in verifyPatternOrder() local
558 TII->genAlternativeCodeSequence(Root, P, InsInstrs, DelInstrs, in verifyPatternOrder()
563 if (InsInstrs.empty() || !TSchedModel.hasInstrSchedModelOrItineraries()) in verifyPatternOrder()
568 Root, InsInstrs, DelInstrs, MinInstr->getTrace(MBB)); in verifyPatternOrder()
640 SmallVector<MachineInstr *, 16> InsInstrs; in combineInstructions() local
643 TII->genAlternativeCodeSequence(MI, P, InsInstrs, DelInstrs, in combineInstructions()
645 unsigned NewInstCount = InsInstrs.size(); in combineInstructions()
660 for (auto const *InstrPtr : InsInstrs) in combineInstructions()
683 if (reduceRegisterPressure(MI, MBB, InsInstrs, DelInstrs, P)) { in combineInstructions()
685 insertDeleteInstructions(MBB, MI, InsInstrs, DelInstrs, MinInstr, in combineInstructions()
702 insertDeleteInstructions(MBB, MI, InsInstrs, DelInstrs, MinInstr, in combineInstructions()
715 if (improvesCriticalPathLen(MBB, &MI, BlockTrace, InsInstrs, DelInstrs, in combineInstructions()
718 preservesResourceLen(MBB, BlockTrace, InsInstrs, DelInstrs)) { in combineInstructions()
725 insertDeleteInstructions(MBB, MI, InsInstrs, DelInstrs, MinInstr, in combineInstructions()
735 for (auto *InstrPtr : InsInstrs) in combineInstructions()