Lines Matching refs:NewPred
1443 auto NewPred = (Pred == Cmp.ICMP_EQ) ? Cmp.ICMP_UGE : Cmp.ICMP_ULT; in foldICmpTruncConstant() local
1444 return new ICmpInst(NewPred, Y, ConstantInt::get(SrcTy, DstBits)); in foldICmpTruncConstant()
1769 auto NewPred = isICMP_NE ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_SGE; in foldICmpAndConstConst() local
1770 return new ICmpInst(NewPred, X, Zero); in foldICmpAndConstConst()
1783 auto NewPred = isICMP_NE ? ICmpInst::ICMP_UGE : ICmpInst::ICMP_ULT; in foldICmpAndConstConst() local
1784 return new ICmpInst(NewPred, X, NegBOC); in foldICmpAndConstConst()
1887 auto NewPred = TrueIfNeg ? CmpInst::ICMP_EQ : CmpInst::ICMP_NE; in foldICmpAndConstant() local
1888 return new ICmpInst(NewPred, X, ConstantInt::getNullValue(X->getType())); in foldICmpAndConstant()
1896 auto NewPred = TrueIfNeg ? CmpInst::ICMP_EQ : CmpInst::ICMP_NE; in foldICmpAndConstant() local
1897 return new ICmpInst(NewPred, X, MinSignedC); in foldICmpAndConstant()
1921 auto NewPred = in foldICmpAndConstant() local
1923 return new ICmpInst(NewPred, X, SubOne(cast<Constant>(Cmp.getOperand(1)))); in foldICmpAndConstant()
2088 auto NewPred = TrueIfSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_SGT; in foldICmpOrConstant() local
2090 return new ICmpInst(NewPred, X, NewC); in foldICmpOrConstant()
2492 auto NewPred = IsUGT ? CmpInst::ICMP_ULT : CmpInst::ICMP_UGE; in foldICmpShrConstant() local
2493 return new ICmpInst(NewPred, Shr->getOperand(1), NewC); in foldICmpShrConstant()
3559 auto NewPred = isICMP_NE ? ICmpInst::ICMP_ULE : ICmpInst::ICMP_UGT; in foldICmpBinOpEqualityWithConstant() local
3560 return new ICmpInst(NewPred, BOp1, BOp0); in foldICmpBinOpEqualityWithConstant()
3701 ICmpInst::Predicate NewPred = in foldICmpEqIntrinsicWithConstant() local
3703 return new ICmpInst(NewPred, II->getArgOperand(0), II->getArgOperand(1)); in foldICmpEqIntrinsicWithConstant()
4949 CmpInst::Predicate NewPred = in foldICmpBinOp() local
4952 return new ICmpInst(NewPred, Op1, Zero); in foldICmpBinOp()
4958 CmpInst::Predicate NewPred = in foldICmpBinOp() local
4961 return new ICmpInst(NewPred, Op0, Zero); in foldICmpBinOp()
5273 ICmpInst::Predicate NewPred = I.getFlippedSignednessPredicate(); in foldICmpBinOp() local
5274 return new ICmpInst(NewPred, BO0->getOperand(0), BO1->getOperand(0)); in foldICmpBinOp()
5279 ICmpInst::Predicate NewPred = I.getFlippedSignednessPredicate(); in foldICmpBinOp() local
5280 NewPred = I.getSwappedPredicate(NewPred); in foldICmpBinOp()
5281 return new ICmpInst(NewPred, BO0->getOperand(0), BO1->getOperand(0)); in foldICmpBinOp()
5427 ICmpInst::Predicate NewPred = in foldICmpWithMinMax() local
5430 NewPred = ICmpInst::getInversePredicate(NewPred); in foldICmpWithMinMax()
5431 return ICmpInst::Create(Instruction::ICmp, NewPred, X, Y); in foldICmpWithMinMax()
5434 ICmpInst::Predicate NewPred = MinMax->getPredicate(); in foldICmpWithMinMax() local
5435 auto MinMaxCmpXZ = IsCondKnownTrue(simplifyICmpInst(NewPred, X, Z, Q)); in foldICmpWithMinMax()
5442 MinMaxCmpXZ = IsCondKnownTrue(simplifyICmpInst(NewPred, X, Z, Q)); in foldICmpWithMinMax()
5690 ICmpInst::Predicate NewPred = in foldICmpEquality() local
5694 return new ICmpInst(NewPred, Xor, ConstantInt::get(A->getType(), CmpVal)); in foldICmpEquality()
6602 auto NewPred = in foldICmpUsingKnownBits() local
6604 return new ICmpInst(NewPred, X, CmpC); in foldICmpUsingKnownBits()
6844 CmpInst::Predicate NewPred = CmpInst::getFlippedStrictnessPredicate(Pred); in getFlippedStrictnessPredicateAndConstant() local
6850 return std::make_pair(NewPred, NewC); in getFlippedStrictnessPredicateAndConstant()
6981 ICmpInst::Predicate Pred, NewPred; in foldICmpWithHighBitMask() local
6987 NewPred = ICmpInst::ICMP_NE; in foldICmpWithHighBitMask()
6990 NewPred = ICmpInst::ICMP_EQ; in foldICmpWithHighBitMask()
7006 NewPred = ICmpInst::ICMP_NE; in foldICmpWithHighBitMask()
7009 NewPred = ICmpInst::ICMP_EQ; in foldICmpWithHighBitMask()
7019 return CmpInst::Create(Instruction::ICmp, NewPred, NewX, Zero); in foldICmpWithHighBitMask()