Lines Matching refs:CmpMI
102 CmpInfo adjustCmp(MachineInstr *CmpMI, AArch64CC::CondCode Cmp);
103 void modifyCmp(MachineInstr *CmpMI, const CmpInfo &Info);
104 bool adjustTo(MachineInstr *CmpMI, AArch64CC::CondCode Cmp, MachineInstr *To,
225 MachineInstr *CmpMI, AArch64CC::CondCode Cmp) { in adjustCmp() argument
226 unsigned Opc = CmpMI->getOpcode(); in adjustCmp()
238 const int OldImm = (int)CmpMI->getOperand(2).getImm(); in adjustCmp()
252 void AArch64ConditionOptimizer::modifyCmp(MachineInstr *CmpMI, in modifyCmp() argument
259 MachineBasicBlock *const MBB = CmpMI->getParent(); in modifyCmp()
262 BuildMI(*MBB, CmpMI, CmpMI->getDebugLoc(), TII->get(Opc)) in modifyCmp()
263 .addOperand(CmpMI->getOperand(0)) in modifyCmp()
264 .addOperand(CmpMI->getOperand(1)) in modifyCmp()
266 .addOperand(CmpMI->getOperand(3)); in modifyCmp()
267 CmpMI->eraseFromParent(); in modifyCmp()
300 bool AArch64ConditionOptimizer::adjustTo(MachineInstr *CmpMI, in adjustTo() argument
303 CmpInfo Info = adjustCmp(CmpMI, Cmp); in adjustTo()
305 modifyCmp(CmpMI, Info); in adjustTo()