Lines Matching refs:CmpMI
101 CmpInfo adjustCmp(MachineInstr *CmpMI, AArch64CC::CondCode Cmp);
102 void modifyCmp(MachineInstr *CmpMI, const CmpInfo &Info);
103 bool adjustTo(MachineInstr *CmpMI, AArch64CC::CondCode Cmp, MachineInstr *To,
232 MachineInstr *CmpMI, AArch64CC::CondCode Cmp) { in adjustCmp() argument
233 unsigned Opc = CmpMI->getOpcode(); in adjustCmp()
245 const int OldImm = (int)CmpMI->getOperand(2).getImm(); in adjustCmp()
259 void AArch64ConditionOptimizer::modifyCmp(MachineInstr *CmpMI, in modifyCmp() argument
266 MachineBasicBlock *const MBB = CmpMI->getParent(); in modifyCmp()
269 BuildMI(*MBB, CmpMI, CmpMI->getDebugLoc(), TII->get(Opc)) in modifyCmp()
270 .addOperand(CmpMI->getOperand(0)) in modifyCmp()
271 .addOperand(CmpMI->getOperand(1)) in modifyCmp()
273 .addOperand(CmpMI->getOperand(3)); in modifyCmp()
274 CmpMI->eraseFromParent(); in modifyCmp()
307 bool AArch64ConditionOptimizer::adjustTo(MachineInstr *CmpMI, in adjustTo() argument
310 CmpInfo Info = adjustCmp(CmpMI, Cmp); in adjustTo()
312 modifyCmp(CmpMI, Info); in adjustTo()