Lines Matching refs:SRem
2529 BinaryOperator *SRem, in foldICmpSRemConstant() argument
2542 if (!SRem->hasOneUse()) in foldICmpSRemConstant()
2546 if (!match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
2558 Type *Ty = SRem->getType(); in foldICmpSRemConstant()
2561 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC); in foldICmpSRemConstant()
3365 case Instruction::SRem: in foldICmpBinOpEqualityWithConstant()
3711 case Instruction::SRem: in foldICmpBinOpWithConstant()
4897 BinaryOperator *SRem = nullptr; in foldICmpBinOp() local
4899 if (BO0 && BO0->getOpcode() == Instruction::SRem && Op1 == BO0->getOperand(1)) in foldICmpBinOp()
4900 SRem = BO0; in foldICmpBinOp()
4902 else if (BO1 && BO1->getOpcode() == Instruction::SRem && in foldICmpBinOp()
4904 SRem = BO1; in foldICmpBinOp()
4905 if (SRem) { in foldICmpBinOp()
4908 switch (SRem == BO0 ? ICmpInst::getSwappedPredicate(Pred) : Pred) { in foldICmpBinOp()
4917 return new ICmpInst(ICmpInst::ICMP_SGT, SRem->getOperand(1), in foldICmpBinOp()
4918 Constant::getAllOnesValue(SRem->getType())); in foldICmpBinOp()
4921 return new ICmpInst(ICmpInst::ICMP_SLT, SRem->getOperand(1), in foldICmpBinOp()
4922 Constant::getNullValue(SRem->getType())); in foldICmpBinOp()