Lines Matching refs:CmpMI
99 CmpInfo adjustCmp(MachineInstr *CmpMI, AArch64CC::CondCode Cmp);
100 void modifyCmp(MachineInstr *CmpMI, const CmpInfo &Info);
101 bool adjustTo(MachineInstr *CmpMI, AArch64CC::CondCode Cmp, MachineInstr *To,
218 MachineInstr *CmpMI, AArch64CC::CondCode Cmp) { in adjustCmp() argument
219 int Opc = CmpMI->getOpcode(); in adjustCmp()
231 const int OldImm = (int)CmpMI->getOperand(2).getImm(); in adjustCmp()
245 void AArch64ConditionOptimizer::modifyCmp(MachineInstr *CmpMI, in modifyCmp() argument
252 MachineBasicBlock *const MBB = CmpMI->getParent(); in modifyCmp()
255 BuildMI(*MBB, CmpMI, CmpMI->getDebugLoc(), TII->get(Opc)) in modifyCmp()
256 .addOperand(CmpMI->getOperand(0)) in modifyCmp()
257 .addOperand(CmpMI->getOperand(1)) in modifyCmp()
259 .addOperand(CmpMI->getOperand(3)); in modifyCmp()
260 CmpMI->eraseFromParent(); in modifyCmp()
293 bool AArch64ConditionOptimizer::adjustTo(MachineInstr *CmpMI, in adjustTo() argument
296 CmpInfo Info = adjustCmp(CmpMI, Cmp); in adjustTo()
298 modifyCmp(CmpMI, Info); in adjustTo()