Lines Matching refs:BOp1
3471 Value *BOp0 = BO->getOperand(0), *BOp1 = BO->getOperand(1); in foldICmpBinOpEqualityWithConstant() local
3478 if (match(BOp1, m_APInt(BOC)) && BOC->sgt(1) && BOC->isPowerOf2()) { in foldICmpBinOpEqualityWithConstant()
3479 Value *NewRem = Builder.CreateURem(BOp0, BOp1, BO->getName()); in foldICmpBinOpEqualityWithConstant()
3489 if (Constant *C2 = dyn_cast<Constant>(BOp1)) { in foldICmpBinOpEqualityWithConstant()
3495 if (Value *NegVal = dyn_castNegVal(BOp1)) in foldICmpBinOpEqualityWithConstant()
3498 return new ICmpInst(Pred, NegVal, BOp1); in foldICmpBinOpEqualityWithConstant()
3502 Value *Or = Builder.CreateOr(BOp0, BOp1); in foldICmpBinOpEqualityWithConstant()
3505 Value *Neg = Builder.CreateNeg(BOp1); in foldICmpBinOpEqualityWithConstant()
3513 if (Constant *BOC = dyn_cast<Constant>(BOp1)) { in foldICmpBinOpEqualityWithConstant()
3519 return new ICmpInst(Pred, BOp0, BOp1); in foldICmpBinOpEqualityWithConstant()
3524 if (match(BOp1, m_APInt(BOC)) && BO->hasOneUse() && RHS->isAllOnesValue()) { in foldICmpBinOpEqualityWithConstant()
3528 Constant *NotBOC = ConstantExpr::getNot(cast<Constant>(BOp1)); in foldICmpBinOpEqualityWithConstant()
3545 return new ICmpInst(Pred, BOp0, BOp1); in foldICmpBinOpEqualityWithConstant()
3548 Instruction::Mul, BO->getOpcode() == Instruction::SDiv, BOp1, in foldICmpBinOpEqualityWithConstant()
3552 Builder.CreateMul(BOp1, ConstantInt::get(BO->getType(), C)); in foldICmpBinOpEqualityWithConstant()
3560 return new ICmpInst(NewPred, BOp1, BOp0); in foldICmpBinOpEqualityWithConstant()