Lines Matching refs:getPredicate
316 Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt, in FoldCmpLoadFromIndexedGlobal()
829 ICmpInst::Predicate Pred = ICI.getPredicate(); in FoldICmpDivCst()
1010 bool IsICMP_NE = ICI.getPredicate() == ICmpInst::ICMP_NE; in FoldICmpShrCst()
1019 return new ICmpInst(ICI.getPredicate(), Shr->getOperand(0), ShiftedCmpRHS); in FoldICmpShrCst()
1028 return new ICmpInst(ICI.getPredicate(), And, ShiftedCmpRHS); in FoldICmpShrCst()
1042 if (I.getPredicate() == I.ICMP_NE) in FoldICmpCstShrCst()
1048 if (I.getPredicate() == I.ICMP_NE) in FoldICmpCstShrCst()
1102 if (I.getPredicate() == I.ICMP_NE) in FoldICmpCstShlCst()
1108 if (I.getPredicate() == I.ICMP_NE) in FoldICmpCstShlCst()
1161 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst()
1171 if ((ICI.getPredicate() == ICmpInst::ICMP_SLT && RHSV == 0) || in visitICmpInstWithInstAndIntCst()
1172 (ICI.getPredicate() == ICmpInst::ICMP_SGT && RHSV.isAllOnesValue())) { in visitICmpInstWithInstAndIntCst()
1184 bool isTrueIfPositive = ICI.getPredicate() == ICmpInst::ICMP_SGT; in visitICmpInstWithInstAndIntCst()
1222 if (ICI.getPredicate() == ICmpInst::ICMP_UGT && in visitICmpInstWithInstAndIntCst()
1228 if (ICI.getPredicate() == ICmpInst::ICMP_ULT && in visitICmpInstWithInstAndIntCst()
1252 return new ICmpInst(ICI.getPredicate(), NewAnd, in visitICmpInstWithInstAndIntCst()
1268 return new ICmpInst(ICI.getPredicate(), NewAnd, in visitICmpInstWithInstAndIntCst()
1334 if (ICI.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInstWithInstAndIntCst()
1336 if (ICI.getPredicate() == ICmpInst::ICMP_NE) in visitICmpInstWithInstAndIntCst()
1420 if (ICI.getPredicate() == ICmpInst::ICMP_UGT) { in visitICmpInstWithInstAndIntCst()
1447 ICI.getPredicate() == ICmpInst::ICMP_EQ ? ICmpInst::ICMP_UGT in visitICmpInstWithInstAndIntCst()
1459 Value *ICIP = Builder->CreateICmp(ICI.getPredicate(), P, in visitICmpInstWithInstAndIntCst()
1461 Value *ICIQ = Builder->CreateICmp(ICI.getPredicate(), Q, in visitICmpInstWithInstAndIntCst()
1464 if (ICI.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInstWithInstAndIntCst()
1479 ICmpInst::Predicate pred = ICI.getPredicate(); in visitICmpInstWithInstAndIntCst()
1498 ICmpInst::Predicate Pred = ICI.getPredicate(); in visitICmpInstWithInstAndIntCst()
1569 bool IsICMP_NE = ICI.getPredicate() == ICmpInst::ICMP_NE; in visitICmpInstWithInstAndIntCst()
1577 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst()
1583 return new ICmpInst(ICI.getPredicate(), LHSI->getOperand(0), in visitICmpInstWithInstAndIntCst()
1594 return new ICmpInst(ICI.getPredicate(), And, in visitICmpInstWithInstAndIntCst()
1601 ICmpInst::Predicate pred = ICI.getPredicate(); in visitICmpInstWithInstAndIntCst()
1611 isSignBitCheck(ICI.getPredicate(), RHS, TrueIfSigned)) { in visitICmpInstWithInstAndIntCst()
1636 return new ICmpInst(ICI.getPredicate(), in visitICmpInstWithInstAndIntCst()
1656 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), RHS); in visitICmpInstWithInstAndIntCst()
1683 if (ICI.getPredicate() == ICmpInst::ICMP_ULT && LHSI->hasOneUse() && in visitICmpInstWithInstAndIntCst()
1692 if (ICI.getPredicate() == ICmpInst::ICMP_UGT && LHSI->hasOneUse() && in visitICmpInstWithInstAndIntCst()
1706 ConstantRange CR = ICI.makeConstantRange(ICI.getPredicate(), RHSV) in visitICmpInstWithInstAndIntCst()
1730 if (ICI.getPredicate() == ICmpInst::ICMP_ULT && LHSI->hasOneUse() && in visitICmpInstWithInstAndIntCst()
1739 if (ICI.getPredicate() == ICmpInst::ICMP_UGT && LHSI->hasOneUse() && in visitICmpInstWithInstAndIntCst()
1750 bool isICMP_NE = ICI.getPredicate() == ICmpInst::ICMP_NE; in visitICmpInstWithInstAndIntCst()
1764 return new ICmpInst(ICI.getPredicate(), NewRem, in visitICmpInstWithInstAndIntCst()
1773 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1781 return new ICmpInst(ICI.getPredicate(), BOp0, NegVal); in visitICmpInstWithInstAndIntCst()
1783 return new ICmpInst(ICI.getPredicate(), NegVal, BOp1); in visitICmpInstWithInstAndIntCst()
1787 return new ICmpInst(ICI.getPredicate(), BOp0, Neg); in visitICmpInstWithInstAndIntCst()
1795 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1799 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1807 return new ICmpInst(ICI.getPredicate(), BO->getOperand(1), in visitICmpInstWithInstAndIntCst()
1811 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1868 return new ICmpInst(ICI.getPredicate(), BO->getOperand(0), in visitICmpInstWithInstAndIntCst()
1938 return new ICmpInst(ICI.getPredicate(), LHSCIOp, RHSOp); in visitICmpInstWithCastAndCast()
1963 return new ICmpInst(ICI.getPredicate(), LHSCIOp, RHSCIOp); in visitICmpInstWithCastAndCast()
1968 return new ICmpInst(ICI.getPredicate(), LHSCIOp, RHSCIOp); in visitICmpInstWithCastAndCast()
1989 return new ICmpInst(ICI.getPredicate(), LHSCIOp, Res1); in visitICmpInstWithCastAndCast()
1994 return new ICmpInst(ICI.getPredicate(), LHSCIOp, Res1); in visitICmpInstWithCastAndCast()
2017 if (ICI.getPredicate() == ICmpInst::ICMP_ULT) in visitICmpInstWithCastAndCast()
2020 assert(ICI.getPredicate() == ICmpInst::ICMP_UGT && "ICmp should be folded!"); in visitICmpInstWithCastAndCast()
2294 switch (I.getPredicate()) { in ProcessUMulZExtIdiom()
2425 switch (I.getPredicate()) { in ProcessUMulZExtIdiom()
2466 switch (I.getPredicate()) { in DemandedBitsLHSMask()
2628 if (isChainSelectCmpBranch(SI) && Icmp->getPredicate() == ICmpInst::ICMP_EQ) { in replacedSelectWithOperand()
2665 if (Value *V = SimplifyICmpInst(I.getPredicate(), Op0, Op1, DL, TLI, DT, AC)) in visitICmpInst()
2670 if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) in visitICmpInst()
2677 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
2681 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
2690 switch (I.getPredicate()) { in visitICmpInst()
2756 if (I.getPredicate() == ICmpInst::ICMP_UGT && in visitICmpInst()
2768 return new ICmpInst(I.getPredicate(), A, B); in visitICmpInst()
2771 if (I.getPredicate() == ICmpInst::ICMP_SGT && CI->isAllOnesValue() && in visitICmpInst()
2776 if (I.getPredicate() == ICmpInst::ICMP_SGT && CI->isZero() && in visitICmpInst()
2781 if (I.getPredicate() == ICmpInst::ICMP_SLT && CI->isZero() && in visitICmpInst()
2786 if (I.getPredicate() == ICmpInst::ICMP_SLT && CI->isOne() && in visitICmpInst()
2795 switch (I.getPredicate()) { in visitICmpInst()
2833 isSignBit = isSignBitCheck(I.getPredicate(), CI, UnusedBit); in visitICmpInst()
2872 return new ICmpInst(I.getPredicate(), in visitICmpInst()
2875 return new ICmpInst(I.getPredicate(), Op0, in visitICmpInst()
2880 switch (I.getPredicate()) { in visitICmpInst()
3106 return new ICmpInst(I.getPredicate(), LHSI->getOperand(0), in visitICmpInst()
3124 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3128 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in visitICmpInst()
3156 Op1 = Builder->CreateICmp(I.getPredicate(), LHSI->getOperand(1), in visitICmpInst()
3159 Op2 = Builder->CreateICmp(I.getPredicate(), LHSI->getOperand(2), in visitICmpInst()
3169 return new ICmpInst(I.getPredicate(), LHSI->getOperand(0), in visitICmpInst()
3189 if (Instruction *NI = FoldGEPICmp(GEP, Op1, I.getPredicate(), I)) in visitICmpInst()
3193 ICmpInst::getSwappedPredicate(I.getPredicate()), I)) in visitICmpInst()
3220 return new ICmpInst(I.getPredicate(), Op0, Op1); in visitICmpInst()
3240 CmpInst::Predicate Pred = I.getPredicate(); in visitICmpInst()
3428 return new ICmpInst(I.getPredicate(), BO0->getOperand(0), in visitICmpInst()
3465 return new ICmpInst(I.getPredicate(), And1, And2); in visitICmpInst()
3478 return new ICmpInst(I.getPredicate(), BO0->getOperand(0), in visitICmpInst()
3487 return new ICmpInst(I.getPredicate(), BO0->getOperand(0), in visitICmpInst()
3509 return new ICmpInst(I.getPredicate(), B, A); in visitICmpInst()
3511 return new ICmpInst(I.getPredicate(), ConstantExpr::getNot(RHSC), A); in visitICmpInst()
3544 return new ICmpInst(I.getPredicate(), OtherVal, in visitICmpInst()
3555 return new ICmpInst(I.getPredicate(), A, Xor); in visitICmpInst()
3559 if (A == C) return new ICmpInst(I.getPredicate(), B, D); in visitICmpInst()
3560 if (A == D) return new ICmpInst(I.getPredicate(), B, C); in visitICmpInst()
3561 if (B == C) return new ICmpInst(I.getPredicate(), A, D); in visitICmpInst()
3562 if (B == D) return new ICmpInst(I.getPredicate(), A, C); in visitICmpInst()
3570 return new ICmpInst(I.getPredicate(), OtherVal, in visitICmpInst()
3610 return new ICmpInst(I.getPredicate(), A, in visitICmpInst()
3623 ICmpInst::Predicate Pred = I.getPredicate() == ICmpInst::ICMP_NE in visitICmpInst()
3642 return new ICmpInst(I.getPredicate(), And, in visitICmpInst()
3668 return new ICmpInst(I.getPredicate(), Mask, Builder->getInt(CmpV)); in visitICmpInst()
3682 if (I.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInst()
3693 return FoldICmpAddOpCst(I, X, Cst, I.getPredicate()); in visitICmpInst()
3727 FCmpInst::Predicate P = I.getPredicate(); in FoldFCmp_IntToFP_Cst()
3765 switch (I.getPredicate()) { in FoldFCmp_IntToFP_Cst()
3946 if (Value *V = SimplifyFCmpInst(I.getPredicate(), Op0, Op1, DL, TLI, DT, AC)) in visitFCmpInst()
3951 switch (I.getPredicate()) { in visitFCmpInst()
4013 return new FCmpInst(I.getPredicate(), LHSExt->getOperand(0), in visitFCmpInst()
4063 switch (I.getPredicate()) { in visitFCmpInst()
4084 return new FCmpInst(I.getPredicate(), CI->getArgOperand(0), RHSC); in visitFCmpInst()
4100 return new FCmpInst(I.getPredicate(), LHSExt->getOperand(0), in visitFCmpInst()