Lines Matching refs:isPowerOf2
1181 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in foldICmpShrConstConst()
1256 if (!CI2->getValue().isPowerOf2()) in processUGT_ADDCST_ADD()
1638 if (*XorC == ~C && (C + 1).isPowerOf2()) in foldICmpXorConstant()
1641 if (*XorC == C && (C + 1).isPowerOf2()) in foldICmpXorConstant()
1646 if (*XorC == -C && C.isPowerOf2()) in foldICmpXorConstant()
1650 if (*XorC == C && (-C).isPowerOf2()) in foldICmpXorConstant()
1776 if ((~(*C2) + 1).isPowerOf2()) { in foldICmpAndConstConst()
1892 if (Cmp.getOperand(1) == Y && (-C).isPowerOf2()) { in foldICmpAndConstant()
1934 if (*MaskC == C && (C + 1).isPowerOf2()) { in foldICmpOrConstant()
2029 bool CIsPowerOf2 = C.isPowerOf2(); in foldICmpShlOne()
2184 if ((C + 1).isPowerOf2() && in foldICmpShlConstant()
2192 if (C.isPowerOf2() && in foldICmpShlConstant()
2628 if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() && in foldICmpSubConstant()
2634 if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == C) in foldICmpSubConstant()
2715 if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() && (*C2 & (C - 1)) == 0) in foldICmpAddConstant()
2722 if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == 0) in foldICmpAddConstant()
3060 if (match(BOp1, m_APInt(BOC)) && BOC->sgt(1) && BOC->isPowerOf2()) { in foldICmpBinOpEqualityWithConstant()
3128 if (C == *BOC && C.isPowerOf2()) in foldICmpBinOpEqualityWithConstant()
3565 assert(ICmpCst.isPowerOf2()); in foldICmpWithTruncSignExtendedVal()
3568 assert(AddCst.ult(ICmpCst) && AddCst.isPowerOf2()); in foldICmpWithTruncSignExtendedVal()
4384 if (Pow2.isPowerOf2() && isa<IntegerType>(A->getType()) && in foldICmpEquality()
4806 if (CVal.isPowerOf2()) { in processUMulZExtIdiom()
5265 if (ValToCheck.isPowerOf2()) { in foldICmpUsingKnownBits()
5271 } else if ((++ValToCheck).isPowerOf2()) { in foldICmpUsingKnownBits()