Searched refs:RHSCst (Results 1 – 5 of 5) sorted by relevance
900 ConstantInt *RHSCst = dyn_cast<ConstantInt>(RHS->getOperand(1)); in FoldAndOfICmps() local901 if (!LHSCst || !RHSCst) return nullptr; in FoldAndOfICmps()903 if (LHSCst == RHSCst && LHSCC == RHSCC) { in FoldAndOfICmps()926 SmallCst = RHSCst; in FoldAndOfICmps()931 BigCst = RHSCst; in FoldAndOfICmps()969 ShouldSwap = LHSCst->getValue().sgt(RHSCst->getValue()); in FoldAndOfICmps()971 ShouldSwap = LHSCst->getValue().ugt(RHSCst->getValue()); in FoldAndOfICmps()975 std::swap(LHSCst, RHSCst); in FoldAndOfICmps()985 assert(LHSCst != RHSCst && "Compares not folded above?"); in FoldAndOfICmps()1001 if (LHSCst == SubOne(RHSCst)) // (X != 13 & X u< 14) -> X < 13 in FoldAndOfICmps()[all …]
583 Constant *RHSCst = cast<Constant>(Cmp->getOperand(1)); in ComputeValueKnownInPredecessors() local590 RHSCst, P, BB, CxtI ? CxtI : Cmp); in ComputeValueKnownInPredecessors()
2818 if (const SCEVConstant *RHSCst = dyn_cast<SCEVConstant>(RHS)) { in getUDivExactExpr() local2822 if (LHSCst == RHSCst) { in getUDivExactExpr()2831 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr()2835 RHSCst = in getUDivExactExpr()2836 cast<SCEVConstant>(getConstant(RHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr()2841 RHS = RHSCst; in getUDivExactExpr()
3354 if (const SCEVConstant *RHSCst = dyn_cast<SCEVConstant>(RHS)) { in getUDivExactExpr() local3358 if (LHSCst == RHSCst) { in getUDivExactExpr()3367 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr()3371 RHSCst = in getUDivExactExpr()3372 cast<SCEVConstant>(getConstant(RHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr()3377 RHS = RHSCst; in getUDivExactExpr()
307 if (auto *RHSCst = dyn_cast<ConstantSDNode>(RHS)) in matchBinaryPredicate() local308 return Match(LHSCst, RHSCst); in matchBinaryPredicate()322 auto *RHSCst = dyn_cast<ConstantSDNode>(RHSOp); in matchBinaryPredicate() local323 if ((!LHSCst && !LHSUndef) || (!RHSCst && !RHSUndef)) in matchBinaryPredicate()328 if (!Match(LHSCst, RHSCst)) in matchBinaryPredicate()