Lines Matching refs:SRem
2620 BinaryOperator *SRem, in foldICmpSRemConstant() argument
2633 if (!SRem->hasOneUse()) in foldICmpSRemConstant()
2637 if (!match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
2649 Type *Ty = SRem->getType(); in foldICmpSRemConstant()
2652 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC); in foldICmpSRemConstant()
3474 case Instruction::SRem: in foldICmpBinOpEqualityWithConstant()
3823 case Instruction::SRem: in foldICmpBinOpWithConstant()
5228 BinaryOperator *SRem = nullptr; in foldICmpBinOp() local
5230 if (BO0 && BO0->getOpcode() == Instruction::SRem && Op1 == BO0->getOperand(1)) in foldICmpBinOp()
5231 SRem = BO0; in foldICmpBinOp()
5233 else if (BO1 && BO1->getOpcode() == Instruction::SRem && in foldICmpBinOp()
5235 SRem = BO1; in foldICmpBinOp()
5236 if (SRem) { in foldICmpBinOp()
5239 switch (SRem == BO0 ? ICmpInst::getSwappedPredicate(Pred) : Pred) { in foldICmpBinOp()
5248 return new ICmpInst(ICmpInst::ICMP_SGT, SRem->getOperand(1), in foldICmpBinOp()
5249 Constant::getAllOnesValue(SRem->getType())); in foldICmpBinOp()
5252 return new ICmpInst(ICmpInst::ICMP_SLT, SRem->getOperand(1), in foldICmpBinOp()
5253 Constant::getNullValue(SRem->getType())); in foldICmpBinOp()