• Home
  • Raw
  • Download

Lines Matching refs:getPredicate

314     Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt,  in FoldCmpLoadFromIndexedGlobal()
807 ConstantInt::get(CmpTy, !CmpInst::isTrueWhenEqual(ICI.getPredicate()))); in FoldAllocaCmp()
899 ICmpInst::Predicate Pred = ICI.getPredicate(); in FoldICmpDivCst()
1078 bool IsICMP_NE = ICI.getPredicate() == ICmpInst::ICMP_NE; in FoldICmpShrCst()
1087 return new ICmpInst(ICI.getPredicate(), Shr->getOperand(0), ShiftedCmpRHS); in FoldICmpShrCst()
1096 return new ICmpInst(ICI.getPredicate(), And, ShiftedCmpRHS); in FoldICmpShrCst()
1110 if (I.getPredicate() == I.ICMP_NE) in FoldICmpCstShrCst()
1116 if (I.getPredicate() == I.ICMP_NE) in FoldICmpCstShrCst()
1174 if (I.getPredicate() == I.ICMP_NE) in FoldICmpCstShlCst()
1180 if (I.getPredicate() == I.ICMP_NE) in FoldICmpCstShlCst()
1223 if (ICI.getPredicate() == ICmpInst::ICMP_SLT && in visitICmpInstWithInstAndIntCst()
1241 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst()
1251 if ((ICI.getPredicate() == ICmpInst::ICMP_SLT && RHSV == 0) || in visitICmpInstWithInstAndIntCst()
1252 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst()
1264 bool isTrueIfPositive = ICI.getPredicate() == ICmpInst::ICMP_SGT; in visitICmpInstWithInstAndIntCst()
1302 if (ICI.getPredicate() == ICmpInst::ICMP_UGT && in visitICmpInstWithInstAndIntCst()
1308 if (ICI.getPredicate() == ICmpInst::ICMP_ULT && in visitICmpInstWithInstAndIntCst()
1332 return new ICmpInst(ICI.getPredicate(), NewAnd, in visitICmpInstWithInstAndIntCst()
1348 return new ICmpInst(ICI.getPredicate(), NewAnd, in visitICmpInstWithInstAndIntCst()
1414 if (ICI.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInstWithInstAndIntCst()
1416 if (ICI.getPredicate() == ICmpInst::ICMP_NE) in visitICmpInstWithInstAndIntCst()
1500 if (ICI.getPredicate() == ICmpInst::ICMP_UGT) { in visitICmpInstWithInstAndIntCst()
1527 ICI.getPredicate() == ICmpInst::ICMP_EQ ? ICmpInst::ICMP_UGT in visitICmpInstWithInstAndIntCst()
1540 return new ICmpInst(ICI.getPredicate() == ICmpInst::ICMP_EQ in visitICmpInstWithInstAndIntCst()
1553 if (ICI.getPredicate() == ICmpInst::ICMP_SLT && in visitICmpInstWithInstAndIntCst()
1565 Value *ICIP = Builder->CreateICmp(ICI.getPredicate(), P, in visitICmpInstWithInstAndIntCst()
1567 Value *ICIQ = Builder->CreateICmp(ICI.getPredicate(), Q, in visitICmpInstWithInstAndIntCst()
1570 if (ICI.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInstWithInstAndIntCst()
1585 ICmpInst::Predicate pred = ICI.getPredicate(); in visitICmpInstWithInstAndIntCst()
1604 ICmpInst::Predicate Pred = ICI.getPredicate(); in visitICmpInstWithInstAndIntCst()
1675 bool IsICMP_NE = ICI.getPredicate() == ICmpInst::ICMP_NE; in visitICmpInstWithInstAndIntCst()
1683 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst()
1689 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst()
1700 return new ICmpInst(ICI.getPredicate(), And, in visitICmpInstWithInstAndIntCst()
1707 ICmpInst::Predicate pred = ICI.getPredicate(); in visitICmpInstWithInstAndIntCst()
1717 isSignBitCheck(ICI.getPredicate(), RHS, TrueIfSigned)) { in visitICmpInstWithInstAndIntCst()
1742 return new ICmpInst(ICI.getPredicate(), in visitICmpInstWithInstAndIntCst()
1762 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), RHS); in visitICmpInstWithInstAndIntCst()
1789 if (ICI.getPredicate() == ICmpInst::ICMP_ULT && LHSI->hasOneUse() && in visitICmpInstWithInstAndIntCst()
1798 if (ICI.getPredicate() == ICmpInst::ICMP_UGT && LHSI->hasOneUse() && in visitICmpInstWithInstAndIntCst()
1812 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV) in visitICmpInstWithInstAndIntCst()
1836 if (ICI.getPredicate() == ICmpInst::ICMP_ULT && LHSI->hasOneUse() && in visitICmpInstWithInstAndIntCst()
1845 if (ICI.getPredicate() == ICmpInst::ICMP_UGT && LHSI->hasOneUse() && in visitICmpInstWithInstAndIntCst()
1856 bool isICMP_NE = ICI.getPredicate() == ICmpInst::ICMP_NE; in visitICmpInstWithInstAndIntCst()
1870 return new ICmpInst(ICI.getPredicate(), NewRem, in visitICmpInstWithInstAndIntCst()
1879 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1887 return new ICmpInst(ICI.getPredicate(), BOp0, NegVal); in visitICmpInstWithInstAndIntCst()
1889 return new ICmpInst(ICI.getPredicate(), NegVal, BOp1); in visitICmpInstWithInstAndIntCst()
1893 return new ICmpInst(ICI.getPredicate(), BOp0, Neg); in visitICmpInstWithInstAndIntCst()
1901 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1905 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1913 return new ICmpInst(ICI.getPredicate(), BO->getOperand(1), in visitICmpInstWithInstAndIntCst()
1917 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1974 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
2044 return new ICmpInst(ICI.getPredicate(), LHSCIOp, RHSOp); in visitICmpInstWithCastAndCast()
2069 return new ICmpInst(ICI.getPredicate(), LHSCIOp, RHSCIOp); in visitICmpInstWithCastAndCast()
2074 return new ICmpInst(ICI.getPredicate(), LHSCIOp, RHSCIOp); in visitICmpInstWithCastAndCast()
2095 return new ICmpInst(ICI.getPredicate(), LHSCIOp, Res1); in visitICmpInstWithCastAndCast()
2100 return new ICmpInst(ICI.getPredicate(), LHSCIOp, Res1); in visitICmpInstWithCastAndCast()
2123 if (ICI.getPredicate() == ICmpInst::ICMP_ULT) in visitICmpInstWithCastAndCast()
2126 assert(ICI.getPredicate() == ICmpInst::ICMP_UGT && "ICmp should be folded!"); in visitICmpInstWithCastAndCast()
2389 switch (I.getPredicate()) { in ProcessUMulZExtIdiom()
2519 switch (I.getPredicate()) { in ProcessUMulZExtIdiom()
2560 switch (I.getPredicate()) { in DemandedBitsLHSMask()
2721 if (isChainSelectCmpBranch(SI) && Icmp->getPredicate() == ICmpInst::ICMP_EQ) { in replacedSelectWithOperand()
2759 SimplifyICmpInst(I.getPredicate(), Op0, Op1, DL, TLI, DT, AC, &I)) in visitICmpInst()
2764 if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) in visitICmpInst()
2771 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
2775 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
2784 switch (I.getPredicate()) { in visitICmpInst()
2850 if (I.getPredicate() == ICmpInst::ICMP_UGT && in visitICmpInst()
2862 return new ICmpInst(I.getPredicate(), A, B); in visitICmpInst()
2865 if (I.getPredicate() == ICmpInst::ICMP_SGT && CI->isAllOnesValue() && in visitICmpInst()
2870 if (I.getPredicate() == ICmpInst::ICMP_SGT && CI->isZero() && in visitICmpInst()
2875 if (I.getPredicate() == ICmpInst::ICMP_SLT && CI->isZero() && in visitICmpInst()
2880 if (I.getPredicate() == ICmpInst::ICMP_SLT && CI->isOne() && in visitICmpInst()
2889 switch (I.getPredicate()) { in visitICmpInst()
2927 isSignBit = isSignBitCheck(I.getPredicate(), CI, UnusedBit); in visitICmpInst()
2966 return new ICmpInst(I.getPredicate(), in visitICmpInst()
2969 return new ICmpInst(I.getPredicate(), Op0, in visitICmpInst()
2974 switch (I.getPredicate()) { in visitICmpInst()
3198 return new ICmpInst(I.getPredicate(), LHSI->getOperand(0), in visitICmpInst()
3216 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3220 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3248 Op1 = Builder->CreateICmp(I.getPredicate(), LHSI->getOperand(1), in visitICmpInst()
3251 Op2 = Builder->CreateICmp(I.getPredicate(), LHSI->getOperand(2), in visitICmpInst()
3261 return new ICmpInst(I.getPredicate(), LHSI->getOperand(0), in visitICmpInst()
3281 if (Instruction *NI = FoldGEPICmp(GEP, Op1, I.getPredicate(), I)) in visitICmpInst()
3285 ICmpInst::getSwappedPredicate(I.getPredicate()), I)) in visitICmpInst()
3323 return new ICmpInst(I.getPredicate(), Op0, Op1); in visitICmpInst()
3343 CmpInst::Predicate Pred = I.getPredicate(); in visitICmpInst()
3551 return new ICmpInst(I.getPredicate(), BO0->getOperand(0), in visitICmpInst()
3588 return new ICmpInst(I.getPredicate(), And1, And2); in visitICmpInst()
3601 return new ICmpInst(I.getPredicate(), BO0->getOperand(0), in visitICmpInst()
3610 return new ICmpInst(I.getPredicate(), BO0->getOperand(0), in visitICmpInst()
3622 if (match(BO0, BitwiseAnd) && I.getPredicate() == ICmpInst::ICMP_ULT) { in visitICmpInst()
3644 return new ICmpInst(I.getPredicate(), B, A); in visitICmpInst()
3646 return new ICmpInst(I.getPredicate(), ConstantExpr::getNot(RHSC), A); in visitICmpInst()
3679 return new ICmpInst(I.getPredicate(), OtherVal, in visitICmpInst()
3690 return new ICmpInst(I.getPredicate(), A, Xor); in visitICmpInst()
3694 if (A == C) return new ICmpInst(I.getPredicate(), B, D); in visitICmpInst()
3695 if (A == D) return new ICmpInst(I.getPredicate(), B, C); in visitICmpInst()
3696 if (B == C) return new ICmpInst(I.getPredicate(), A, D); in visitICmpInst()
3697 if (B == D) return new ICmpInst(I.getPredicate(), A, C); in visitICmpInst()
3705 return new ICmpInst(I.getPredicate(), OtherVal, in visitICmpInst()
3745 return new ICmpInst(I.getPredicate(), A, in visitICmpInst()
3758 ICmpInst::Predicate Pred = I.getPredicate() == ICmpInst::ICMP_NE in visitICmpInst()
3777 return new ICmpInst(I.getPredicate(), And, in visitICmpInst()
3803 return new ICmpInst(I.getPredicate(), Mask, Builder->getInt(CmpV)); in visitICmpInst()
3817 if (I.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInst()
3828 return FoldICmpAddOpCst(I, X, Cst, I.getPredicate()); in visitICmpInst()
3854 FCmpInst::Predicate P = I.getPredicate(); in FoldFCmp_IntToFP_Cst()
3909 switch (I.getPredicate()) { in FoldFCmp_IntToFP_Cst()
4090 if (Value *V = SimplifyFCmpInst(I.getPredicate(), Op0, Op1, in visitFCmpInst()
4096 switch (I.getPredicate()) { in visitFCmpInst()
4171 return new FCmpInst(I.getPredicate(), LHSExt->getOperand(0), in visitFCmpInst()
4221 switch (I.getPredicate()) { in visitFCmpInst()
4242 return new FCmpInst(I.getPredicate(), CI->getArgOperand(0), RHSC); in visitFCmpInst()
4258 return new FCmpInst(I.getPredicate(), LHSExt->getOperand(0), in visitFCmpInst()