Searched refs:LHSCst (Results 1 – 6 of 6) sorted by relevance
899 ConstantInt *LHSCst = dyn_cast<ConstantInt>(LHS->getOperand(1)); in FoldAndOfICmps() local901 if (!LHSCst || !RHSCst) return nullptr; in FoldAndOfICmps()903 if (LHSCst == RHSCst && LHSCC == RHSCC) { in FoldAndOfICmps()907 if ((LHSCC == ICmpInst::ICMP_ULT && LHSCst->getValue().isPowerOf2()) || in FoldAndOfICmps()908 (LHSCC == ICmpInst::ICMP_EQ && LHSCst->isZero())) { in FoldAndOfICmps()910 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldAndOfICmps()927 BigCst = LHSCst; in FoldAndOfICmps()930 SmallCst = LHSCst; in FoldAndOfICmps()969 ShouldSwap = LHSCst->getValue().sgt(RHSCst->getValue()); in FoldAndOfICmps()971 ShouldSwap = LHSCst->getValue().ugt(RHSCst->getValue()); in FoldAndOfICmps()[all …]
2821 if (const auto *LHSCst = dyn_cast<SCEVConstant>(Mul->getOperand(0))) { in getUDivExactExpr() local2822 if (LHSCst == RHSCst) { in getUDivExactExpr()2831 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr()2833 LHSCst = in getUDivExactExpr()2834 cast<SCEVConstant>(getConstant(LHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr()2838 Operands.push_back(LHSCst); in getUDivExactExpr()
3357 if (const auto *LHSCst = dyn_cast<SCEVConstant>(Mul->getOperand(0))) { in getUDivExactExpr() local3358 if (LHSCst == RHSCst) { in getUDivExactExpr()3367 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr()3369 LHSCst = in getUDivExactExpr()3370 cast<SCEVConstant>(getConstant(LHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr()3374 Operands.push_back(LHSCst); in getUDivExactExpr()
3272 if (const auto *LHSCst = dyn_cast<SCEVConstant>(Mul->getOperand(0))) { in getUDivExactExpr() local3273 if (LHSCst == RHSCst) { in getUDivExactExpr()3282 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr()3284 LHSCst = in getUDivExactExpr()3285 cast<SCEVConstant>(getConstant(LHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr()3289 Operands.push_back(LHSCst); in getUDivExactExpr()
306 if (auto *LHSCst = dyn_cast<ConstantSDNode>(LHS)) in matchBinaryPredicate() local308 return Match(LHSCst, RHSCst); in matchBinaryPredicate()321 auto *LHSCst = dyn_cast<ConstantSDNode>(LHSOp); in matchBinaryPredicate() local323 if ((!LHSCst && !LHSUndef) || (!RHSCst && !RHSUndef)) in matchBinaryPredicate()328 if (!Match(LHSCst, RHSCst)) in matchBinaryPredicate()
317 if (auto *LHSCst = dyn_cast<ConstantSDNode>(LHS)) in matchBinaryPredicate() local319 return Match(LHSCst, RHSCst); in matchBinaryPredicate()332 auto *LHSCst = dyn_cast<ConstantSDNode>(LHSOp); in matchBinaryPredicate() local334 if ((!LHSCst && !LHSUndef) || (!RHSCst && !RHSUndef)) in matchBinaryPredicate()339 if (!Match(LHSCst, RHSCst)) in matchBinaryPredicate()