Lines Matching defs:SRem
2675 BinaryOperator *SRem,
2686 if (!match(SRem->getOperand(1), m_APInt(DivisorC)))
2702 Type *Ty = SRem->getType();
2704 return new ICmpInst(ICmpInst::ICMP_SLT, SRem,
2706 return new ICmpInst(ICmpInst::ICMP_SGT, SRem,
2719 if (!SRem->hasOneUse())
2723 if (!match(SRem->getOperand(1), m_Power2(DivisorC)))
2735 Type *Ty = SRem->getType();
2738 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC);
3588 case Instruction::SRem:
3984 case Instruction::SRem:
5439 BinaryOperator *SRem = nullptr;
5441 if (BO0 && BO0->getOpcode() == Instruction::SRem && Op1 == BO0->getOperand(1))
5442 SRem = BO0;
5444 else if (BO1 && BO1->getOpcode() == Instruction::SRem &&
5446 SRem = BO1;
5447 if (SRem) {
5450 switch (SRem == BO0 ? ICmpInst::getSwappedPredicate(Pred) : Pred) {
5459 return new ICmpInst(ICmpInst::ICMP_SGT, SRem->getOperand(1),
5460 Constant::getAllOnesValue(SRem->getType()));
5463 return new ICmpInst(ICmpInst::ICMP_SLT, SRem->getOperand(1),
5464 Constant::getNullValue(SRem->getType()));