Lines Matching refs:SRem
2416 BinaryOperator *SRem, in foldICmpSRemConstant() argument
2429 if (!SRem->hasOneUse()) in foldICmpSRemConstant()
2433 if (!match(SRem->getOperand(1), m_Power2(DivisorC))) in foldICmpSRemConstant()
2445 Type *Ty = SRem->getType(); in foldICmpSRemConstant()
2448 Value *And = Builder.CreateAnd(SRem->getOperand(0), MaskC); in foldICmpSRemConstant()
3163 case Instruction::SRem: in foldICmpBinOpEqualityWithConstant()
3427 case Instruction::SRem: in foldICmpBinOpWithConstant()
4373 BinaryOperator *SRem = nullptr; in foldICmpBinOp() local
4375 if (BO0 && BO0->getOpcode() == Instruction::SRem && Op1 == BO0->getOperand(1)) in foldICmpBinOp()
4376 SRem = BO0; in foldICmpBinOp()
4378 else if (BO1 && BO1->getOpcode() == Instruction::SRem && in foldICmpBinOp()
4380 SRem = BO1; in foldICmpBinOp()
4381 if (SRem) { in foldICmpBinOp()
4384 switch (SRem == BO0 ? ICmpInst::getSwappedPredicate(Pred) : Pred) { in foldICmpBinOp()
4393 return new ICmpInst(ICmpInst::ICMP_SGT, SRem->getOperand(1), in foldICmpBinOp()
4394 Constant::getAllOnesValue(SRem->getType())); in foldICmpBinOp()
4397 return new ICmpInst(ICmpInst::ICMP_SLT, SRem->getOperand(1), in foldICmpBinOp()
4398 Constant::getNullValue(SRem->getType())); in foldICmpBinOp()