Lines Matching refs:NewRoot
68 unsigned getLatency(MachineInstr *Root, MachineInstr *NewRoot,
123 /// \returns Depth of last instruction in \InsInstrs ("NewRoot")
177 /// \param Root is a machine instruction that could be replaced by NewRoot.
178 /// It is used to compute a more accurate latency information for NewRoot in
180 /// \param NewRoot is the instruction for which the latency is computed
183 /// \returns Latency of \p NewRoot
184 unsigned MachineCombiner::getLatency(MachineInstr *Root, MachineInstr *NewRoot,
189 // Check each definition in NewRoot and compute the latency
192 for (const MachineOperand &MO : NewRoot->operands()) {
205 NewRoot, NewRoot->findRegisterDefOperandIdx(MO.getReg()), UseMO,
208 LatencyOp = TSchedModel.computeInstrLatency(NewRoot);
237 /// The new code sequence ends in MI NewRoot. A necessary condition for the new
249 // NewRoot is the last instruction in the \p InsInstrs vector.
251 MachineInstr *NewRoot = InsInstrs[NewRootIdx];
253 // Get depth and latency of NewRoot and Root.
272 unsigned NewRootLatency = getLatency(Root, NewRoot, BlockTrace);
373 // (=Root) (=NewRoot)