Lines Matching defs:CmpInstr
2228 optimizeCompareInstr(MachineInstr *CmpInstr, unsigned SrcReg, unsigned SrcReg2,
2241 if (UI->getParent() != CmpInstr->getParent()) continue;
2253 // Get ready to iterate backward from CmpInstr.
2254 MachineBasicBlock::iterator I = CmpInstr, E = MI,
2255 B = CmpInstr->getParent()->begin();
2257 // Early exit if CmpInstr is at the beginning of the BB.
2268 else if (MI->getParent() != CmpInstr->getParent() || CmpValue != 0) {
2272 if (CmpInstr->getOpcode() == ARM::CMPri ||
2273 CmpInstr->getOpcode() == ARM::t2CMPri)
2292 // Check whether CmpInstr can be made redundant by the current instruction.
2293 if (isRedundantFlagInstr(CmpInstr, SrcReg, SrcReg2, CmpValue, &*I)) {
2352 // It is safe to remove CmpInstr if CPSR is redefined or killed.
2358 I = CmpInstr;
2359 E = CmpInstr->getParent()->end();
2408 // If it is safe to remove CmpInstr, the condition code of these
2437 MachineBasicBlock *MBB = CmpInstr->getParent();
2448 CmpInstr->eraseFromParent();