Lines Matching refs:CMPI2

1668     MachineInstr *CMPI2 = MRI->getVRegDef(BI2->getOperand(1).getReg());  in eliminateRedundantCompare()  local
1674 !isSupportedCmpOp(CMPI2->getOpcode()) || in eliminateRedundantCompare()
1675 is64bitCmpOp(CMPI1->getOpcode()) != is64bitCmpOp(CMPI2->getOpcode())) in eliminateRedundantCompare()
1683 if (CMPI1->getOpcode() != CMPI2->getOpcode()) { in eliminateRedundantCompare()
1699 if (isEqOrNe(BI2) && !CmpAgainstImmWithSignBit(CMPI2) && in eliminateRedundantCompare()
1700 CMPI1->getOpcode() == getSignedCmpOpCode(CMPI2->getOpcode())) in eliminateRedundantCompare()
1703 getSignedCmpOpCode(CMPI1->getOpcode()) == CMPI2->getOpcode()) in eliminateRedundantCompare()
1704 NewOpCode = CMPI2->getOpcode(); in eliminateRedundantCompare()
1708 if (CMPI1->getOperand(2).isReg() && CMPI2->getOperand(2).isReg()) { in eliminateRedundantCompare()
1715 unsigned Cmp2Operand1 = getSrcVReg(CMPI2->getOperand(1).getReg(), in eliminateRedundantCompare()
1717 unsigned Cmp2Operand2 = getSrcVReg(CMPI2->getOperand(2).getReg(), in eliminateRedundantCompare()
1734 else if (CMPI1->getOperand(2).isImm() && CMPI2->getOperand(2).isImm()) { in eliminateRedundantCompare()
1739 unsigned Cmp2Operand1 = getSrcVReg(CMPI2->getOperand(1).getReg(), in eliminateRedundantCompare()
1745 NewImm2 = Imm2 = (int16_t)CMPI2->getOperand(2).getImm(); in eliminateRedundantCompare()
1756 unsigned PredToInc2 = getPredicateToIncImm(BI2, CMPI2); in eliminateRedundantCompare()
1757 unsigned PredToDec2 = getPredicateToDecImm(BI2, CMPI2); in eliminateRedundantCompare()
1804 LLVM_DEBUG(CMPI2->dump()); in eliminateRedundantCompare()
1809 for (const MachineOperand &MO : CMPI2->operands()) in eliminateRedundantCompare()
1831 Register Op1 = CMPI2->getOperand(1).getReg(); in eliminateRedundantCompare()
1832 Register Op2 = CMPI2->getOperand(2).getReg(); in eliminateRedundantCompare()
1833 CMPI2->getOperand(1).setReg(Op2); in eliminateRedundantCompare()
1834 CMPI2->getOperand(2).setReg(Op1); in eliminateRedundantCompare()
1837 CMPI2->getOperand(2).setImm(NewImm2); in eliminateRedundantCompare()
1840 if (CMPI2->getOperand(I).isReg()) { in eliminateRedundantCompare()
1841 MachineInstr *Inst = MRI->getVRegDef(CMPI2->getOperand(I).getReg()); in eliminateRedundantCompare()
1848 CMPI2->getOperand(I).setReg(SrcReg); in eliminateRedundantCompare()
1853 MBBtoMoveCmp->splice(I, &MBB2, MachineBasicBlock::iterator(CMPI2)); in eliminateRedundantCompare()
1855 DebugLoc DL = CMPI2->getDebugLoc(); in eliminateRedundantCompare()
1874 CMPI2->eraseFromParent(); in eliminateRedundantCompare()
1885 LLVM_DEBUG(CMPI2->dump()); in eliminateRedundantCompare()