Lines Matching refs:DivRHS
861 ConstantInt *DivRHS) { in FoldICmpDivCst() argument
876 if (DivRHS->isZero()) in FoldICmpDivCst()
878 if (DivIsSigned && DivRHS->isAllOnesValue()) in FoldICmpDivCst()
880 if (DivRHS->isOne()) { in FoldICmpDivCst()
890 Constant *Prod = ConstantExpr::getMul(CmpRHS, DivRHS); in FoldICmpDivCst()
895 bool ProdOV = (DivIsSigned ? ConstantExpr::getSDiv(Prod, DivRHS) : in FoldICmpDivCst()
896 ConstantExpr::getUDiv(Prod, DivRHS)) != CmpRHS; in FoldICmpDivCst()
903 ConstantInt *RangeSize = DivI->isExact() ? getOne(Prod) : DivRHS; in FoldICmpDivCst()
924 } else if (DivRHS->getValue().isStrictlyPositive()) { // Divisor is > 0. in FoldICmpDivCst()
943 } else if (DivRHS->isNegative()) { // Divisor is < 0. in FoldICmpDivCst()
950 if (HiBound == DivRHS) { // -INTMIN = INTMIN in FoldICmpDivCst()
1775 if (ConstantInt *DivRHS = dyn_cast<ConstantInt>(LHSI->getOperand(1))) in visitICmpInstWithInstAndIntCst() local
1777 DivRHS)) in visitICmpInstWithInstAndIntCst()