Lines Matching refs:NewPred
1432 auto NewPred = (Pred == Cmp.ICMP_EQ) ? Cmp.ICMP_UGE : Cmp.ICMP_ULT; in foldICmpTruncConstant() local
1433 return new ICmpInst(NewPred, Y, ConstantInt::get(SrcTy, DstBits)); in foldICmpTruncConstant()
1752 auto NewPred = isICMP_NE ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_SGE; in foldICmpAndConstConst() local
1753 return new ICmpInst(NewPred, X, Zero); in foldICmpAndConstConst()
1766 auto NewPred = isICMP_NE ? ICmpInst::ICMP_UGE : ICmpInst::ICMP_ULT; in foldICmpAndConstConst() local
1767 return new ICmpInst(NewPred, X, NegBOC); in foldICmpAndConstConst()
1848 auto NewPred = TrueIfNeg ? CmpInst::ICMP_EQ : CmpInst::ICMP_NE; in foldICmpAndConstant() local
1849 return new ICmpInst(NewPred, X, ConstantInt::getNullValue(X->getType())); in foldICmpAndConstant()
1857 auto NewPred = TrueIfNeg ? CmpInst::ICMP_EQ : CmpInst::ICMP_NE; in foldICmpAndConstant() local
1858 return new ICmpInst(NewPred, X, MinSignedC); in foldICmpAndConstant()
1882 auto NewPred = in foldICmpAndConstant() local
1884 return new ICmpInst(NewPred, X, SubOne(cast<Constant>(Cmp.getOperand(1)))); in foldICmpAndConstant()
2028 auto NewPred = TrueIfSigned ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_SGT; in foldICmpOrConstant() local
2030 return new ICmpInst(NewPred, X, NewC); in foldICmpOrConstant()
2411 auto NewPred = IsUGT ? CmpInst::ICMP_ULT : CmpInst::ICMP_UGE; in foldICmpShrConstant() local
2412 return new ICmpInst(NewPred, Shr->getOperand(1), NewC); in foldICmpShrConstant()
3447 auto NewPred = isICMP_NE ? ICmpInst::ICMP_ULE : ICmpInst::ICMP_UGT; in foldICmpBinOpEqualityWithConstant() local
3448 return new ICmpInst(NewPred, BOp1, BOp0); in foldICmpBinOpEqualityWithConstant()
3589 ICmpInst::Predicate NewPred = in foldICmpEqIntrinsicWithConstant() local
3591 return new ICmpInst(NewPred, II->getArgOperand(0), II->getArgOperand(1)); in foldICmpEqIntrinsicWithConstant()
4618 CmpInst::Predicate NewPred = in foldICmpBinOp() local
4621 return new ICmpInst(NewPred, Op1, Zero); in foldICmpBinOp()
4627 CmpInst::Predicate NewPred = in foldICmpBinOp() local
4630 return new ICmpInst(NewPred, Op0, Zero); in foldICmpBinOp()
4942 ICmpInst::Predicate NewPred = I.getFlippedSignednessPredicate(); in foldICmpBinOp() local
4943 return new ICmpInst(NewPred, BO0->getOperand(0), BO1->getOperand(0)); in foldICmpBinOp()
4948 ICmpInst::Predicate NewPred = I.getFlippedSignednessPredicate(); in foldICmpBinOp() local
4949 NewPred = I.getSwappedPredicate(NewPred); in foldICmpBinOp()
4950 return new ICmpInst(NewPred, BO0->getOperand(0), BO1->getOperand(0)); in foldICmpBinOp()
5099 ICmpInst::Predicate NewPred = in foldICmpWithMinMax() local
5102 NewPred = ICmpInst::getInversePredicate(NewPred); in foldICmpWithMinMax()
5103 return ICmpInst::Create(Instruction::ICmp, NewPred, X, Y); in foldICmpWithMinMax()
5106 ICmpInst::Predicate NewPred = MinMax->getPredicate(); in foldICmpWithMinMax() local
5107 auto MinMaxCmpXZ = IsCondKnownTrue(simplifyICmpInst(NewPred, X, Z, Q)); in foldICmpWithMinMax()
5114 MinMaxCmpXZ = IsCondKnownTrue(simplifyICmpInst(NewPred, X, Z, Q)); in foldICmpWithMinMax()
5361 ICmpInst::Predicate NewPred = in foldICmpEquality() local
5365 return new ICmpInst(NewPred, Xor, ConstantInt::get(A->getType(), CmpVal)); in foldICmpEquality()
6273 auto NewPred = in foldICmpUsingKnownBits() local
6275 return new ICmpInst(NewPred, X, CmpC); in foldICmpUsingKnownBits()
6515 CmpInst::Predicate NewPred = CmpInst::getFlippedStrictnessPredicate(Pred); in getFlippedStrictnessPredicateAndConstant() local
6521 return std::make_pair(NewPred, NewC); in getFlippedStrictnessPredicateAndConstant()
6652 ICmpInst::Predicate Pred, NewPred; in foldICmpWithHighBitMask() local
6658 NewPred = ICmpInst::ICMP_NE; in foldICmpWithHighBitMask()
6661 NewPred = ICmpInst::ICMP_EQ; in foldICmpWithHighBitMask()
6677 NewPred = ICmpInst::ICMP_NE; in foldICmpWithHighBitMask()
6680 NewPred = ICmpInst::ICMP_EQ; in foldICmpWithHighBitMask()
6690 return CmpInst::Create(Instruction::ICmp, NewPred, NewX, Zero); in foldICmpWithHighBitMask()