Home | History | Annotate | Download | only in ARM

Lines Matching full:cmpinstr

2066 optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, unsigned SrcReg2,
2079 if (UI->getParent() != CmpInstr->getParent()) continue;
2091 // Get ready to iterate backward from CmpInstr.
2092 MachineBasicBlock::iterator I = CmpInstr, E = MI,
2093 B = CmpInstr->getParent()->begin();
2095 // Early exit if CmpInstr is at the beginning of the BB.
2106 else if (MI->getParent() != CmpInstr->getParent() || CmpValue != 0) {
2110 if (CmpInstr->getOpcode() == ARM::CMPri ||
2111 CmpInstr->getOpcode() == ARM::t2CMPri)
2130 // Check whether CmpInstr can be made redundant by the current instruction.
2131 if (isRedundantFlagInstr(CmpInstr, SrcReg, SrcReg2, CmpValue, &*I)) {
2190 // It is safe to remove CmpInstr if CPSR is redefined or killed.
2196 I = CmpInstr;
2197 E = CmpInstr->getParent()->end();
2222 // If it is safe to remove CmpInstr, the condition code of these
2248 MachineBasicBlock *MBB = CmpInstr->getParent();
2259 CmpInstr->eraseFromParent();