Lines Matching refs:getPredicate
236 Constant *C = ConstantFoldCompareInstOperands(ICI.getPredicate(), Elt, in foldCmpLoadFromIndexedGlobal()
1100 ConstantInt::get(CmpTy, !CmpInst::isTrueWhenEqual(ICI.getPredicate()))); in foldAllocaCmp()
1160 if (I.getPredicate() == I.ICMP_NE) in foldICmpShrConstConst()
1207 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE); in foldICmpShrConstConst()
1219 if (I.getPredicate() == I.ICMP_NE) in foldICmpShlConstConst()
1246 auto *TorF = ConstantInt::get(I.getType(), I.getPredicate() == I.ICMP_NE); in foldICmpShlConstConst()
1396 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithZero()
1448 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithConstant()
1507 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithDominatingICmp()
1555 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpTruncConstant()
1596 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpXorConstant()
1598 if (isSignBitCheck(Cmp.getPredicate(), C, TrueIfSigned)) { in foldICmpXorConstant()
1707 if (Cmp.getPredicate() == ICmpInst::ICMP_EQ) in foldICmpAndShift()
1709 if (Cmp.getPredicate() == ICmpInst::ICMP_NE) in foldICmpAndShift()
1714 return new ICmpInst(Cmp.getPredicate(), in foldICmpAndShift()
1741 bool isICMP_NE = Cmp.getPredicate() == ICmpInst::ICMP_NE; in foldICmpAndConstConst()
1798 return new ICmpInst(Cmp.getPredicate(), NewAnd, ZextC1); in foldICmpAndConstConst()
1874 auto NewPred = Cmp.getPredicate() == CmpInst::ICMP_EQ ? CmpInst::ICMP_UGT in foldICmpAndConstant()
1891 auto NewPred = Cmp.getPredicate() == CmpInst::ICMP_EQ ? CmpInst::ICMP_SGE in foldICmpAndConstant()
1904 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpOrConstant()
1976 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpMulConstant()
2012 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpShlOne()
2082 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpShlConstant()
2212 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpShrConstant()
2305 const ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpSRemConstant()
2349 if (Cmp.getPredicate() == ICmpInst::ICMP_UGT) { in foldICmpUDivConstant()
2357 if (Cmp.getPredicate() == ICmpInst::ICMP_ULT) { in foldICmpUDivConstant()
2411 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpDivConstant()
2541 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpSubConstant()
2547 return new ICmpInst(Cmp.getPredicate(), Y, in foldICmpSubConstant()
2610 CmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpAddConstant()
2736 ConstantExpr::getCompare(Cmp.getPredicate(), C1LessThan, C) in foldICmpSelectConstant()
2739 ConstantExpr::getCompare(Cmp.getPredicate(), C2Equal, C) in foldICmpSelectConstant()
2742 ConstantExpr::getCompare(Cmp.getPredicate(), C3GreaterThan, C) in foldICmpSelectConstant()
2775 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpBitCast()
2987 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpBinOpEqualityWithConstant()
3094 return new ICmpInst(Cmp.getPredicate(), II->getArgOperand(0), in foldICmpEqIntrinsicWithConstant()
3100 return new ICmpInst(Cmp.getPredicate(), II->getArgOperand(0), in foldICmpEqIntrinsicWithConstant()
3107 return new ICmpInst(Cmp.getPredicate(), II->getArgOperand(0), in foldICmpEqIntrinsicWithConstant()
3121 return new ICmpInst(Cmp.getPredicate(), in foldICmpEqIntrinsicWithConstant()
3133 return new ICmpInst(Cmp.getPredicate(), II->getArgOperand(0), in foldICmpEqIntrinsicWithConstant()
3143 return new ICmpInst(Cmp.getPredicate(), Or, Constant::getNullValue(Ty)); in foldICmpEqIntrinsicWithConstant()
3151 ICmpInst::Predicate NewPred = Cmp.getPredicate() == ICmpInst::ICMP_EQ in foldICmpEqIntrinsicWithConstant()
3173 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpIntrinsicWithConstant()
3248 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt()
3266 Op1 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt()
3270 Op2 = ConstantExpr::getICmp(I.getPredicate(), C, RHSC); in foldICmpInstWithConstantNotInt()
3298 Op1 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(1), RHSC, in foldICmpInstWithConstantNotInt()
3301 Op2 = Builder.CreateICmp(I.getPredicate(), LHSI->getOperand(2), RHSC, in foldICmpInstWithConstantNotInt()
3312 I.getPredicate(), LHSI->getOperand(0), in foldICmpInstWithConstantNotInt()
3670 return Builder.CreateICmp(I.getPredicate(), T1, in foldShiftIntoShiftInAnotherHandOfAndInICmp()
3777 const CmpInst::Predicate Pred = I.getPredicate(); in foldICmpBinOp()
4143 ICmpInst::Predicate Pred = Cmp.getPredicate(); in foldICmpWithMinMax()
4233 const CmpInst::Predicate Pred = I.getPredicate(); in foldICmpEquality()
4439 return new ICmpInst(ICmp.getPredicate(), X, Y); in foldICmpWithZextOrSext()
4444 return new ICmpInst(ICmp.getPredicate(), X, Y); in foldICmpWithZextOrSext()
4465 return new ICmpInst(ICmp.getPredicate(), X, Res1); in foldICmpWithZextOrSext()
4470 return new ICmpInst(ICmp.getPredicate(), X, Res1); in foldICmpWithZextOrSext()
4486 if (ICmp.getPredicate() == ICmpInst::ICMP_ULT) in foldICmpWithZextOrSext()
4491 assert(ICmp.getPredicate() == ICmpInst::ICMP_UGT && "ICmp should be folded!"); in foldICmpWithZextOrSext()
4533 return new ICmpInst(ICmp.getPredicate(), Op0Src, NewOp1); in foldICmpWithCastOp()
4707 switch (I.getPredicate()) { in processUMulZExtIdiom()
4825 switch (I.getPredicate()) { in processUMulZExtIdiom()
4865 if (InstCombiner::isSignBitCheck(I.getPredicate(), *RHS, UnusedBit)) in getDemandedBitsLHSMask()
4868 switch (I.getPredicate()) { in getDemandedBitsLHSMask()
5001 if (isChainSelectCmpBranch(SI) && Icmp->getPredicate() == ICmpInst::ICMP_EQ) { in replacedSelectWithOperand()
5028 ICmpInst::Predicate Pred = I.getPredicate(); in foldICmpUsingKnownBits()
5320 ICmpInst::Predicate Pred = I.getPredicate(); in canonicalizeCmpWithConstant()
5343 CmpInst::Predicate Pred = I.getPredicate(); in canonicalizeICmpPredicate()
5390 switch (I.getPredicate()) { in canonicalizeICmpBool()
5399 switch (I.getPredicate()) { in canonicalizeICmpBool()
5409 switch (I.getPredicate()) { in canonicalizeICmpBool()
5505 const CmpInst::Predicate Pred = Cmp.getPredicate(); in foldVectorCmp()
5550 CmpInst::Predicate Pred = I.getPredicate(); in foldICmpOfUAddOv()
5594 if (Value *V = SimplifyICmpInst(I.getPredicate(), Op0, Op1, Q)) in visitICmpInst()
5599 if (I.getPredicate() == ICmpInst::ICMP_NE && match(Op1, m_Zero())) { in visitICmpInst()
5605 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
5609 return CmpInst::Create(Instruction::ICmp, I.getPredicate(), V, Op1); in visitICmpInst()
5662 ICmpInst::Predicate Pred = I.getPredicate(); in visitICmpInst()
5691 if (Instruction *NI = foldGEPICmp(GEP, Op1, I.getPredicate(), I)) in visitICmpInst()
5695 ICmpInst::getSwappedPredicate(I.getPredicate()), I)) in visitICmpInst()
5734 return new ICmpInst(I.getPredicate(), B, A); in visitICmpInst()
5785 if (I.getPredicate() == ICmpInst::ICMP_EQ) in visitICmpInst()
5797 return foldICmpAddOpConst(X, *C, I.getPredicate()); in visitICmpInst()
5831 FCmpInst::Predicate P = I.getPredicate(); in foldFCmpIntToFPConst()
5886 switch (I.getPredicate()) { in foldFCmpIntToFPConst()
6070 FCmpInst::Predicate Pred = I.getPredicate(); in foldFCmpReciprocalAndZero()
6113 switch (I.getPredicate()) { in foldFabsWithFcmpZero()
6157 return replacePredAndOp0(&I, I.getPredicate(), X); in foldFabsWithFcmpZero()
6175 const CmpInst::Predicate Pred = I.getPredicate(); in visitFCmpInst()