Lines Matching refs:getPredicate
264 Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt, in foldCmpLoadFromIndexedGlobal()
1078 ConstantInt::get(CmpTy, !CmpInst::isTrueWhenEqual(ICI.getPredicate()))); in foldAllocaCmp()
1138 if (I.getPredicate() == I.ICMP_NE) in foldICmpShrConstConst()
1185 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE); in foldICmpShrConstConst()
1197 if (I.getPredicate() == I.ICMP_NE) in foldICmpShlConstConst()
1224 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE); in foldICmpShlConstConst()
1320 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithZero()
1353 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithConstant()
1391 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithDominatingICmp()
1439 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpTruncConstant()
1480 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpXorConstant()
1482 if (isSignBitCheck(Cmp.getPredicate(), C, TrueIfSigned)) { in foldICmpXorConstant()
1589 if (Cmp.getPredicate() == ICmpInst::ICMP_EQ) in foldICmpAndShift()
1591 if (Cmp.getPredicate() == ICmpInst::ICMP_NE) in foldICmpAndShift()
1630 if (Cmp.getPredicate() == CmpInst::ICMP_NE && Cmp.getType()->isVectorTy() && in foldICmpAndConstConst()
1661 return new ICmpInst(Cmp.getPredicate(), NewAnd, ZextC1); in foldICmpAndConstConst()
1738 auto NewPred = Cmp.getPredicate() == CmpInst::ICMP_EQ ? CmpInst::ICMP_UGT in foldICmpAndConstant()
1754 auto NewPred = Cmp.getPredicate() == CmpInst::ICMP_EQ ? CmpInst::ICMP_SGE in foldICmpAndConstant()
1766 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpOrConstant()
1825 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpMulConstant()
1846 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpShlOne()
1916 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpShlConstant()
2024 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpShrConstant()
2123 if (Cmp.getPredicate() == ICmpInst::ICMP_UGT) { in foldICmpUDivConstant()
2131 if (Cmp.getPredicate() == ICmpInst::ICMP_ULT) { in foldICmpUDivConstant()
2185 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpDivConstant()
2315 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpSubConstant()
2370 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpAddConstant()
2466 ConstantExpr::getCompare(Cmp.getPredicate(), C1LessThan, C) in foldICmpSelectConstant()
2469 ConstantExpr::getCompare(Cmp.getPredicate(), C2Equal, C) in foldICmpSelectConstant()
2472 ConstantExpr::getCompare(Cmp.getPredicate(), C3GreaterThan, C) in foldICmpSelectConstant()
2519 auto Pred = Cmp.getPredicate(); in foldICmpBitCastConstant()
2630 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpBinOpEqualityWithConstant()
2840 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt()
2858 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt()
2862 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt()
2890 Op1 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(1), RHSC, in foldICmpInstWithConstantNotInt()
2893 Op2 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(2), RHSC, in foldICmpInstWithConstantNotInt()
2904 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt()
3109 const CmpInst::Predicate Pred = I.getPredicate(); in foldICmpBinOp()
3456 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithMinMax()
3546 const CmpInst::Predicate Pred = I.getPredicate(); in foldICmpEquality()
3729 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, RHSOp); in foldICmpWithCastAndCast()
3754 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, RHSCIOp); in foldICmpWithCastAndCast()
3759 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, RHSCIOp); in foldICmpWithCastAndCast()
3779 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, Res1); in foldICmpWithCastAndCast()
3784 return new ICmpInst(ICmp.getPredicate(), LHSCIOp, Res1); in foldICmpWithCastAndCast()
3809 if (ICmp.getPredicate() == ICmpInst::ICMP_ULT) in foldICmpWithCastAndCast()
3812 assert(ICmp.getPredicate() == ICmpInst::ICMP_UGT && "ICmp should be folded!"); in foldICmpWithCastAndCast()
3997 switch (I.getPredicate()) { in processUMulZExtIdiom()
4128 switch (I.getPredicate()) { in processUMulZExtIdiom()
4168 if (isSignBitCheck(I.getPredicate(), *RHS, UnusedBit)) in getDemandedBitsLHSMask()
4171 switch (I.getPredicate()) { in getDemandedBitsLHSMask()
4304 if (isChainSelectCmpBranch(SI) && Icmp->getPredicate() == ICmpInst::ICMP_EQ) { in replacedSelectWithOperand()
4331 ICmpInst::Predicate Pred = I.getPredicate(); in foldICmpUsingKnownBits()
4558 ICmpInst::Predicate Pred = I.getPredicate(); in canonicalizeCmpWithConstant()
4622 switch (I.getPredicate()) { in canonicalizeICmpBool()
4631 switch (I.getPredicate()) { in canonicalizeICmpBool()
4641 switch (I.getPredicate()) { in canonicalizeICmpBool()
4755 CmpInst::Predicate P = Cmp.getPredicate(); in foldVectorCmp()
4779 if (Value *V = SimplifyICmpInst(I.getPredicate(), Op0, Op1, in visitICmpInst()
4785 if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) { in visitICmpInst()
4791 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
4795 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
4842 ICmpInst::Predicate Pred = I.getPredicate(); in visitICmpInst()
4866 if (Instruction *NI = foldGEPICmp(GEP, Op1, I.getPredicate(), I)) in visitICmpInst()
4870 ICmpInst::getSwappedPredicate(I.getPredicate()), I)) in visitICmpInst()
4936 return new ICmpInst(I.getPredicate(), Op0, Op1); in visitICmpInst()
4973 return new ICmpInst(I.getPredicate(), B, A); in visitICmpInst()
5017 if (I.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInst()
5029 return foldICmpAddOpConst(X, *C, I.getPredicate()); in visitICmpInst()
5062 FCmpInst::Predicate P = I.getPredicate(); in foldFCmpIntToFPConst()
5117 switch (I.getPredicate()) { in foldFCmpIntToFPConst()
5301 FCmpInst::Predicate Pred = I.getPredicate(); in foldFCmpReciprocalAndZero()
5345 switch (I.getPredicate()) { in foldFabsWithFcmpZero()
5389 return replacePredAndOp0(&I, I.getPredicate(), X); in foldFabsWithFcmpZero()
5407 const CmpInst::Predicate Pred = I.getPredicate(); in visitFCmpInst()