Lines Matching refs:DefMI

94   MachineInstr *DefMI = MRI->getVRegDef(Reg);  in getAccDefMI()  local
96 if (DefMI->getParent() != MBB) in getAccDefMI()
98 if (DefMI->isCopyLike()) { in getAccDefMI()
99 Reg = DefMI->getOperand(1).getReg(); in getAccDefMI()
101 DefMI = MRI->getVRegDef(Reg); in getAccDefMI()
104 } else if (DefMI->isInsertSubreg()) { in getAccDefMI()
105 Reg = DefMI->getOperand(2).getReg(); in getAccDefMI()
107 DefMI = MRI->getVRegDef(Reg); in getAccDefMI()
113 return DefMI; in getAccDefMI()
146 MachineInstr *DefMI = MRI->getVRegDef(Reg); in hasLoopHazard() local
149 if (DefMI->getParent() != MBB) in hasLoopHazard()
152 if (DefMI->isPHI()) { in hasLoopHazard()
153 for (unsigned i = 1, e = DefMI->getNumOperands(); i < e; i += 2) { in hasLoopHazard()
154 if (DefMI->getOperand(i + 1).getMBB() == MBB) { in hasLoopHazard()
155 Register SrcReg = DefMI->getOperand(i).getReg(); in hasLoopHazard()
157 DefMI = MRI->getVRegDef(SrcReg); in hasLoopHazard()
162 } else if (DefMI->isCopyLike()) { in hasLoopHazard()
163 Reg = DefMI->getOperand(1).getReg(); in hasLoopHazard()
165 DefMI = MRI->getVRegDef(Reg); in hasLoopHazard()
168 } else if (DefMI->isInsertSubreg()) { in hasLoopHazard()
169 Reg = DefMI->getOperand(2).getReg(); in hasLoopHazard()
171 DefMI = MRI->getVRegDef(Reg); in hasLoopHazard()
179 return DefMI == MI; in hasLoopHazard()
217 MachineInstr *DefMI = getAccDefMI(MI); in FindMLxHazard() local
218 if (TII->isFpMLxInstruction(DefMI->getOpcode())) { in FindMLxHazard()
227 IgnoreStall.insert(DefMI); in FindMLxHazard()
235 return isFpMulInstruction(DefMI->getOpcode()) || hasLoopHazard(MI); in FindMLxHazard()