Lines Matching refs:RHSC
2339 auto *RHSC = dyn_cast<SCEVConstant>(RHS); in willNotOverflow() local
2341 if (!RHSC) in willNotOverflow()
2343 APInt C = RHSC->getAPInt(); in willNotOverflow()
2535 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getAddExpr() local
2537 Ops[0] = getConstant(LHSC->getAPInt() + RHSC->getAPInt()); in getAddExpr()
3128 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getMulExpr() local
3130 Ops[0] = getConstant(LHSC->getAPInt() * RHSC->getAPInt()); in getMulExpr()
3398 if (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(RHS)) { in getURemExpr() local
3400 if (RHSC->getValue()->isOne()) in getURemExpr()
3404 if (RHSC->getAPInt().isPowerOf2()) { in getURemExpr()
3407 IntegerType::get(getContext(), RHSC->getAPInt().logBase2()); in getURemExpr()
3440 if (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(RHS)) { in getUDivExpr() local
3441 if (RHSC->getValue()->isOne()) in getUDivExpr()
3446 if (!RHSC->getValue()->isZero()) { in getUDivExpr()
3451 unsigned LZ = RHSC->getAPInt().countl_zero(); in getUDivExpr()
3455 if (!RHSC->getAPInt().isPowerOf2()) in getUDivExpr()
3464 const APInt &DivInt = RHSC->getAPInt(); in getUDivExpr()
3515 const SCEV *Div = getUDivExpr(Op, RHSC); in getUDivExpr()
3516 if (!isa<SCEVUDivExpr>(Div) && getMulExpr(Div, RHSC) == Op) { in getUDivExpr()
3530 DivisorConstant->getAPInt().umul_ov(RHSC->getAPInt(), Overflow); in getUDivExpr()
3532 return getConstant(RHSC->getType(), 0, false); in getUDivExpr()
3559 return getConstant(LHSC->getAPInt().udiv(RHSC->getAPInt())); in getUDivExpr()
3877 while (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(Ops[Idx])) { in getMinMaxExpr() local
3880 getContext(), FoldOp(LHSC->getAPInt(), RHSC->getAPInt())); in getMinMaxExpr()
5296 if (auto *RHSC = dyn_cast<ConstantInt>(Op->getOperand(1))) in MatchBinaryOp() local
5299 if (RHSC->getValue().isSignMask()) in MatchBinaryOp()
9117 if (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(RHS)) in computeExitLimitFromICmp() local
9122 ConstantRange::makeExactICmpRegion(Pred, RHSC->getAPInt()); in computeExitLimitFromICmp()
10591 if (const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(RHS)) { in SimplifyICmpOperands() local
10594 RHSC->getValue())->isNullValue()) in SimplifyICmpOperands()
15144 const SCEVConstant *RHSC = dyn_cast<SCEVConstant>(RHS); in applyLoopGuards() local
15145 if (Predicate == CmpInst::ICMP_EQ && RHSC && in applyLoopGuards()
15146 RHSC->getValue()->isNullValue()) { in applyLoopGuards()