Lines Matching refs:mi
59 static unsigned copyHint(const MachineInstr *mi, unsigned reg, in copyHint() argument
63 if (mi->getOperand(0).getReg() == reg) { in copyHint()
64 sub = mi->getOperand(0).getSubReg(); in copyHint()
65 hreg = mi->getOperand(1).getReg(); in copyHint()
66 hsub = mi->getOperand(1).getSubReg(); in copyHint()
68 sub = mi->getOperand(1).getSubReg(); in copyHint()
69 hreg = mi->getOperand(0).getReg(); in copyHint()
70 hsub = mi->getOperand(0).getSubReg(); in copyHint()
131 MachineInstr *mi = I.skipInstruction();) { in CalculateWeightAndHint()
132 if (mi->isIdentityCopy() || mi->isImplicitDef() || mi->isDebugValue()) in CalculateWeightAndHint()
134 if (!visited.insert(mi)) in CalculateWeightAndHint()
140 if (mi->getParent() != mbb) { in CalculateWeightAndHint()
141 mbb = mi->getParent(); in CalculateWeightAndHint()
149 tie(reads, writes) = mi->readsWritesVirtualRegister(li.reg); in CalculateWeightAndHint()
160 if (noHint || !mi->isCopy()) in CalculateWeightAndHint()
162 unsigned hint = copyHint(mi, li.reg, tri, mri); in CalculateWeightAndHint()