Lines Matching refs:NewPred

1738     auto NewPred = Cmp.getPredicate() == CmpInst::ICMP_EQ ? CmpInst::ICMP_UGT  in foldICmpAndConstant()  local
1740 return new ICmpInst(NewPred, X, SubOne(cast<Constant>(Cmp.getOperand(1)))); in foldICmpAndConstant()
1754 auto NewPred = Cmp.getPredicate() == CmpInst::ICMP_EQ ? CmpInst::ICMP_SGE in foldICmpAndConstant() local
1756 return new ICmpInst(NewPred, Trunc, Constant::getNullValue(NTy)); in foldICmpAndConstant()
2722 auto NewPred = isICMP_NE ? ICmpInst::ICMP_SLT : ICmpInst::ICMP_SGE; in foldICmpBinOpEqualityWithConstant() local
2723 return new ICmpInst(NewPred, BOp0, Zero); in foldICmpBinOpEqualityWithConstant()
2729 auto NewPred = isICMP_NE ? ICmpInst::ICMP_UGE : ICmpInst::ICMP_ULT; in foldICmpBinOpEqualityWithConstant() local
2730 return new ICmpInst(NewPred, BOp0, NegBOC); in foldICmpBinOpEqualityWithConstant()
2749 auto NewPred = isICMP_NE ? ICmpInst::ICMP_ULE : ICmpInst::ICMP_UGT; in foldICmpBinOpEqualityWithConstant() local
2750 return new ICmpInst(NewPred, BOp1, BOp0); in foldICmpBinOpEqualityWithConstant()
3367 ICmpInst::Predicate NewPred = in foldICmpBinOp() local
3369 return new ICmpInst(NewPred, BO0->getOperand(0), BO1->getOperand(0)); in foldICmpBinOp()
3374 ICmpInst::Predicate NewPred = in foldICmpBinOp() local
3376 NewPred = I.getSwappedPredicate(NewPred); in foldICmpBinOp()
3377 return new ICmpInst(NewPred, BO0->getOperand(0), BO1->getOperand(0)); in foldICmpBinOp()
3636 ICmpInst::Predicate NewPred = in foldICmpEquality() local
3640 return new ICmpInst(NewPred, Xor, Builder.getInt(CmpVal)); in foldICmpEquality()
4407 auto NewPred = ICmpInst::getInversePredicate(Pred); in foldICmpUsingKnownBits() local
4408 return new ICmpInst(NewPred, X, CmpC); in foldICmpUsingKnownBits()
4413 auto NewPred = in foldICmpUsingKnownBits() local
4415 return new ICmpInst(NewPred, X, CmpC); in foldICmpUsingKnownBits()
4426 auto NewPred = ICmpInst::getInversePredicate(Pred); in foldICmpUsingKnownBits() local
4427 return new ICmpInst(NewPred, X, ConstantInt::get(X->getType(), CmpVal)); in foldICmpUsingKnownBits()
4607 CmpInst::Predicate NewPred = IsLE ? ICmpInst::ICMP_ULT: ICmpInst::ICMP_UGT; in canonicalizeCmpWithConstant() local
4608 NewPred = IsSigned ? ICmpInst::getSignedPredicate(NewPred) : NewPred; in canonicalizeCmpWithConstant()
4609 return new ICmpInst(NewPred, Op0, ConstantExpr::getAdd(Op1C, OneOrNegOne)); in canonicalizeCmpWithConstant()
4694 ICmpInst::Predicate Pred, NewPred; in foldICmpWithHighBitMask() local
4704 NewPred = ICmpInst::ICMP_NE; in foldICmpWithHighBitMask()
4707 NewPred = ICmpInst::ICMP_EQ; in foldICmpWithHighBitMask()
4727 NewPred = ICmpInst::ICMP_NE; in foldICmpWithHighBitMask()
4730 NewPred = ICmpInst::ICMP_EQ; in foldICmpWithHighBitMask()
4740 return CmpInst::Create(Instruction::ICmp, NewPred, NewX, Zero); in foldICmpWithHighBitMask()