Searched refs:LHSCst (Results 1 – 3 of 3) sorted by relevance
741 ConstantInt *LHSCst = dyn_cast<ConstantInt>(LHS->getOperand(1)); in FoldAndOfICmps() local743 if (LHSCst == 0 || RHSCst == 0) return 0; in FoldAndOfICmps()745 if (LHSCst == RHSCst && LHSCC == RHSCC) { in FoldAndOfICmps()749 LHSCst->getValue().isPowerOf2()) { in FoldAndOfICmps()751 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldAndOfICmps()755 if (LHSCC == ICmpInst::ICMP_EQ && LHSCst->isZero()) { in FoldAndOfICmps()757 return Builder->CreateICmp(LHSCC, NewOr, LHSCst); in FoldAndOfICmps()761 if (LHSCC == ICmpInst::ICMP_SLT && LHSCst->isZero()) { in FoldAndOfICmps()763 return Builder->CreateICmp(LHSCC, NewAnd, LHSCst); in FoldAndOfICmps()767 if (LHSCC == ICmpInst::ICMP_SGT && LHSCst->isAllOnesValue()) { in FoldAndOfICmps()[all …]
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()