Lines Matching refs:UseMI
142 const MachineInstr *UseMI, in getOperandLatency() argument
145 UseMI, UseIdx); in getOperandLatency()
164 if (UseMI->isBranch() && IsRegCR) { in getOperandLatency()
1188 bool PPCInstrInfo::FoldImmediate(MachineInstr *UseMI, MachineInstr *DefMI, in FoldImmediate() argument
1204 const MCInstrDesc &UseMCID = UseMI->getDesc(); in FoldImmediate()
1211 for (UseIdx = 0; UseIdx < UseMI->getNumOperands(); ++UseIdx) in FoldImmediate()
1212 if (UseMI->getOperand(UseIdx).isReg() && in FoldImmediate()
1213 UseMI->getOperand(UseIdx).getReg() == Reg) in FoldImmediate()
1216 assert(UseIdx < UseMI->getNumOperands() && "Cannot find Reg in UseMI"); in FoldImmediate()
1248 UseMI->getOperand(UseIdx).setReg(ZeroReg); in FoldImmediate()
1570 MachineInstr *UseMI = &*I; in optimizeCompareInstr() local
1571 if (UseMI->getOpcode() == PPC::BCC) { in optimizeCompareInstr()
1572 unsigned Pred = UseMI->getOperand(0).getImm(); in optimizeCompareInstr()
1575 } else if (UseMI->getOpcode() == PPC::ISEL || in optimizeCompareInstr()
1576 UseMI->getOpcode() == PPC::ISEL8) { in optimizeCompareInstr()
1577 unsigned SubIdx = UseMI->getOperand(3).getSubReg(); in optimizeCompareInstr()
1704 MachineInstr *UseMI = &*I; in optimizeCompareInstr() local
1705 if (UseMI->getOpcode() == PPC::BCC) { in optimizeCompareInstr()
1706 PPC::Predicate Pred = (PPC::Predicate) UseMI->getOperand(0).getImm(); in optimizeCompareInstr()
1710 PredsToUpdate.push_back(std::make_pair(&(UseMI->getOperand(0)), in optimizeCompareInstr()
1712 } else if (UseMI->getOpcode() == PPC::ISEL || in optimizeCompareInstr()
1713 UseMI->getOpcode() == PPC::ISEL8) { in optimizeCompareInstr()
1714 unsigned NewSubReg = UseMI->getOperand(3).getSubReg(); in optimizeCompareInstr()
1723 SubRegsToUpdate.push_back(std::make_pair(&(UseMI->getOperand(3)), in optimizeCompareInstr()