Lines Matching defs:mi
44 static unsigned copyHint(const MachineInstr *mi, unsigned reg,
48 if (mi->getOperand(0).getReg() == reg) {
49 sub = mi->getOperand(0).getSubReg();
50 hreg = mi->getOperand(1).getReg();
51 hsub = mi->getOperand(1).getSubReg();
53 sub = mi->getOperand(1).getSubReg();
54 hreg = mi->getOperand(0).getReg();
55 hsub = mi->getOperand(0).getSubReg();
119 MachineInstr *mi = &*(I++);
121 if (mi->isIdentityCopy() || mi->isImplicitDef() || mi->isDebugValue())
123 if (!visited.insert(mi).second)
128 // Get loop info for mi.
129 if (mi->getParent() != mbb) {
130 mbb = mi->getParent();
137 std::tie(reads, writes) = mi->readsWritesVirtualRegister(li.reg);
139 writes, reads, &MBFI, mi);
149 if (noHint || !mi->isCopy())
151 unsigned hint = copyHint(mi, li.reg, tri, mri);