Lines Matching refs:getPredicate

197     Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt,  in foldCmpLoadFromIndexedGlobal()
1084 ConstantInt::get(CmpTy, !CmpInst::isTrueWhenEqual(ICI.getPredicate()))); in foldAllocaCmp()
1144 if (I.getPredicate() == I.ICMP_NE) in foldICmpShrConstConst()
1191 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE); in foldICmpShrConstConst()
1203 if (I.getPredicate() == I.ICMP_NE) in foldICmpShlConstConst()
1230 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE); in foldICmpShlConstConst()
1380 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithZero()
1432 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithConstant()
1491 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithDominatingICmp()
1545 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpTruncConstant()
1602 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpXorConstant()
1604 if (isSignBitCheck(Cmp.getPredicate(), C, TrueIfSigned)) { in foldICmpXorConstant()
1713 if (Cmp.getPredicate() == ICmpInst::ICMP_EQ) in foldICmpAndShift()
1715 if (Cmp.getPredicate() == ICmpInst::ICMP_NE) in foldICmpAndShift()
1720 return new ICmpInst(Cmp.getPredicate(), in foldICmpAndShift()
1747 bool isICMP_NE = Cmp.getPredicate() == ICmpInst::ICMP_NE; in foldICmpAndConstConst()
1804 return new ICmpInst(Cmp.getPredicate(), NewAnd, ZextC1); in foldICmpAndConstConst()
1858 const ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpAndConstant()
1922 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpOrConstant()
1994 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpMulConstant()
2030 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpShlOne()
2100 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpShlConstant()
2229 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpShrConstant()
2347 const ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpSRemConstant()
2391 if (Cmp.getPredicate() == ICmpInst::ICMP_UGT) { in foldICmpUDivConstant()
2399 if (Cmp.getPredicate() == ICmpInst::ICMP_ULT) { in foldICmpUDivConstant()
2453 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpDivConstant()
2583 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpSubConstant()
2589 return new ICmpInst(Cmp.getPredicate(), Y, in foldICmpSubConstant()
2652 const CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpAddConstant()
2800 ConstantExpr::getCompare(Cmp.getPredicate(), C1LessThan, C) in foldICmpSelectConstant()
2803 ConstantExpr::getCompare(Cmp.getPredicate(), C2Equal, C) in foldICmpSelectConstant()
2806 ConstantExpr::getCompare(Cmp.getPredicate(), C3GreaterThan, C) in foldICmpSelectConstant()
2839 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpBitCast()
3050 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpBinOpEqualityWithConstant()
3157 return new ICmpInst(Cmp.getPredicate(), II->getArgOperand(0), in foldICmpEqIntrinsicWithConstant()
3163 return new ICmpInst(Cmp.getPredicate(), II->getArgOperand(0), in foldICmpEqIntrinsicWithConstant()
3170 return new ICmpInst(Cmp.getPredicate(), II->getArgOperand(0), in foldICmpEqIntrinsicWithConstant()
3184 return new ICmpInst(Cmp.getPredicate(), in foldICmpEqIntrinsicWithConstant()
3196 return new ICmpInst(Cmp.getPredicate(), II->getArgOperand(0), in foldICmpEqIntrinsicWithConstant()
3206 return new ICmpInst(Cmp.getPredicate(), Or, Constant::getNullValue(Ty)); in foldICmpEqIntrinsicWithConstant()
3214 ICmpInst::Predicate NewPred = Cmp.getPredicate() == ICmpInst::ICMP_EQ in foldICmpEqIntrinsicWithConstant()
3236 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpIntrinsicWithConstant()
3311 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt()
3332 Op = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt()
3335 Op = SimplifyICmpInst(I.getPredicate(), V, RHSC, SQ); in foldICmpInstWithConstantNotInt()
3371 Op1 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(1), RHSC, in foldICmpInstWithConstantNotInt()
3374 Op2 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(2), RHSC, in foldICmpInstWithConstantNotInt()
3385 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt()
3743 return Builder.CreateICmp(I.getPredicate(), T1, in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3850 const CmpInst::Predicate Pred = I.getPredicate(); in foldICmpBinOp()
4220 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithMinMax()
4310 const CmpInst::Predicate Pred = I.getPredicate(); in foldICmpEquality()
4516 return new ICmpInst(ICmp.getPredicate(), X, Y); in foldICmpWithZextOrSext()
4521 return new ICmpInst(ICmp.getPredicate(), X, Y); in foldICmpWithZextOrSext()
4542 return new ICmpInst(ICmp.getPredicate(), X, Res1); in foldICmpWithZextOrSext()
4547 return new ICmpInst(ICmp.getPredicate(), X, Res1); in foldICmpWithZextOrSext()
4563 if (ICmp.getPredicate() == ICmpInst::ICMP_ULT) in foldICmpWithZextOrSext()
4568 assert(ICmp.getPredicate() == ICmpInst::ICMP_UGT && "ICmp should be folded!"); in foldICmpWithZextOrSext()
4580 return new ICmpInst(ICmp.getPredicate(), in foldICmpWithCastOp()
4620 return new ICmpInst(ICmp.getPredicate(), Op0Src, NewOp1); in foldICmpWithCastOp()
4794 switch (I.getPredicate()) { in processUMulZExtIdiom()
4911 switch (I.getPredicate()) { in processUMulZExtIdiom()
4951 if (InstCombiner::isSignBitCheck(I.getPredicate(), *RHS, UnusedBit)) in getDemandedBitsLHSMask()
4954 switch (I.getPredicate()) { in getDemandedBitsLHSMask()
5087 if (isChainSelectCmpBranch(SI) && Icmp->getPredicate() == ICmpInst::ICMP_EQ) { in replacedSelectWithOperand()
5114 ICmpInst::Predicate Pred = I.getPredicate(); in foldICmpUsingKnownBits()
5440 ICmpInst::Predicate Pred = I.getPredicate(); in canonicalizeCmpWithConstant()
5463 CmpInst::Predicate Pred = I.getPredicate(); in canonicalizeICmpPredicate()
5492 switch (I.getPredicate()) { in canonicalizeICmpBool()
5501 switch (I.getPredicate()) { in canonicalizeICmpBool()
5511 switch (I.getPredicate()) { in canonicalizeICmpBool()
5607 const CmpInst::Predicate Pred = Cmp.getPredicate(); in foldVectorCmp()
5652 CmpInst::Predicate Pred = I.getPredicate(); in foldICmpOfUAddOv()
5696 if (Value *V = SimplifyICmpInst(I.getPredicate(), Op0, Op1, Q)) in visitICmpInst()
5701 if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) { in visitICmpInst()
5707 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
5711 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
5764 ICmpInst::Predicate Pred = I.getPredicate(); in visitICmpInst()
5793 if (Instruction *NI = foldGEPICmp(GEP, Op1, I.getPredicate(), I)) in visitICmpInst()
5797 ICmpInst::getSwappedPredicate(I.getPredicate()), I)) in visitICmpInst()
5836 return new ICmpInst(I.getPredicate(), B, A); in visitICmpInst()
5887 if (I.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInst()
5899 return foldICmpAddOpConst(X, *C, I.getPredicate()); in visitICmpInst()
5933 FCmpInst::Predicate P = I.getPredicate(); in foldFCmpIntToFPConst()
5988 switch (I.getPredicate()) { in foldFCmpIntToFPConst()
6172 FCmpInst::Predicate Pred = I.getPredicate(); in foldFCmpReciprocalAndZero()
6215 switch (I.getPredicate()) { in foldFabsWithFcmpZero()
6259 return replacePredAndOp0(&I, I.getPredicate(), X); in foldFabsWithFcmpZero()
6277 const CmpInst::Predicate Pred = I.getPredicate(); in visitFCmpInst()