Lines Matching refs:SRem
2342 BinaryOperator *SRem, in foldICmpSRemConstant() argument
2354 if (!SRem->hasOneUse()) in foldICmpSRemConstant()
2358 if (!C.isNullValue() || !match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
2362 Type *Ty = SRem->getType(); in foldICmpSRemConstant()
2365 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC); in foldICmpSRemConstant()
2990 case Instruction::SRem: in foldICmpInstWithConstant()
3056 case Instruction::SRem: in foldICmpBinOpEqualityWithConstant()
4087 BinaryOperator *SRem = nullptr; in foldICmpBinOp() local
4089 if (BO0 && BO0->getOpcode() == Instruction::SRem && Op1 == BO0->getOperand(1)) in foldICmpBinOp()
4090 SRem = BO0; in foldICmpBinOp()
4092 else if (BO1 && BO1->getOpcode() == Instruction::SRem && in foldICmpBinOp()
4094 SRem = BO1; in foldICmpBinOp()
4095 if (SRem) { in foldICmpBinOp()
4098 switch (SRem == BO0 ? ICmpInst::getSwappedPredicate(Pred) : Pred) { in foldICmpBinOp()
4107 return new ICmpInst(ICmpInst::ICMP_SGT, SRem->getOperand(1), in foldICmpBinOp()
4108 Constant::getAllOnesValue(SRem->getType())); in foldICmpBinOp()
4111 return new ICmpInst(ICmpInst::ICMP_SLT, SRem->getOperand(1), in foldICmpBinOp()
4112 Constant::getNullValue(SRem->getType())); in foldICmpBinOp()