Lines Matching full:newroot
68 unsigned getLatency(MachineInstr *Root, MachineInstr *NewRoot,
121 /// \returns Depth of last instruction in \InsInstrs ("NewRoot")
175 /// \param Root is a machine instruction that could be replaced by NewRoot.
176 /// It is used to compute a more accurate latency information for NewRoot in
178 /// \param NewRoot is the instruction for which the latency is computed
181 /// \returns Latency of \p NewRoot
182 unsigned MachineCombiner::getLatency(MachineInstr *Root, MachineInstr *NewRoot,
187 // Check each definition in NewRoot and compute the latency
190 for (const MachineOperand &MO : NewRoot->operands()) {
203 NewRoot, NewRoot->findRegisterDefOperandIdx(MO.getReg()), UseMO,
206 LatencyOp = TSchedModel.computeInstrLatency(NewRoot);
235 /// The new code sequence ends in MI NewRoot. A necessary condition for the new
247 // NewRoot is the last instruction in the \p InsInstrs vector.
249 MachineInstr *NewRoot = InsInstrs[NewRootIdx];
251 // Get depth and latency of NewRoot and Root.
270 unsigned NewRootLatency = getLatency(Root, NewRoot, BlockTrace);
369 // (=Root) (=NewRoot)