Lines Matching defs:NewRoot
97 unsigned getLatency(MachineInstr *Root, MachineInstr *NewRoot,
202 /// \returns Depth of last instruction in \InsInstrs ("NewRoot")
261 /// \param Root is a machine instruction that could be replaced by NewRoot.
262 /// It is used to compute a more accurate latency information for NewRoot in
264 /// \param NewRoot is the instruction for which the latency is computed
267 /// \returns Latency of \p NewRoot
268 unsigned MachineCombiner::getLatency(MachineInstr *Root, MachineInstr *NewRoot,
270 // Check each definition in NewRoot and compute the latency
273 for (const MachineOperand &MO : NewRoot->all_defs()) {
286 NewRoot,
287 NewRoot->findRegisterDefOperandIdx(MO.getReg(), /*TRI=*/nullptr),
291 LatencyOp = TSchedModel.computeInstrLatency(NewRoot);
322 // NewRoot is the last instruction in the \p InsInstrs vector.
323 MachineInstr *NewRoot = InsInstrs.back();
326 NewRootLatency += getLatency(&MI, NewRoot, BlockTrace);
347 /// The new code sequence ends in MI NewRoot. A necessary condition for the new
358 // Get depth and latency of NewRoot and Root.
584 // (=Root) (=NewRoot)