Home
last modified time | relevance | path

Searched refs:LHSCst (Results 1 – 2 of 2) sorted by relevance

/external/llvm/lib/Transforms/InstCombine/
DInstCombineAndOrXor.cpp911 ConstantInt *LHSCst = dyn_cast<ConstantInt>(LHS->getOperand(1)); in FoldAndOfICmps() local
913 if (!LHSCst || !RHSCst) return nullptr; in FoldAndOfICmps()
915 if (LHSCst == RHSCst && LHSCC == RHSCC) { in FoldAndOfICmps()
919 LHSCst->getValue().isPowerOf2()) { in FoldAndOfICmps()
921 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldAndOfICmps()
925 if (LHSCC == ICmpInst::ICMP_EQ && LHSCst->isZero()) { in FoldAndOfICmps()
927 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldAndOfICmps()
944 BigCst = LHSCst; in FoldAndOfICmps()
947 SmallCst = LHSCst; in FoldAndOfICmps()
980 ConstantRange::makeAllowedICmpRegion(LHSCC, LHSCst->getValue()); in FoldAndOfICmps()
[all …]
/external/llvm/lib/Analysis/
DScalarEvolution.cpp2784 if (const auto *LHSCst = dyn_cast<SCEVConstant>(Mul->getOperand(0))) { in getUDivExactExpr() local
2785 if (LHSCst == RHSCst) { in getUDivExactExpr()
2794 APInt Factor = gcd(LHSCst, RHSCst); in getUDivExactExpr()
2796 LHSCst = in getUDivExactExpr()
2797 cast<SCEVConstant>(getConstant(LHSCst->getAPInt().udiv(Factor))); in getUDivExactExpr()
2801 Operands.push_back(LHSCst); in getUDivExactExpr()