Lines Matching refs:isPowerOf2
1005 if (AP1.isAllOnes() && !AP2.isPowerOf2()) in foldICmpShrConstConst()
1080 if (!CI2->getValue().isPowerOf2()) in processUGT_ADDCST_ADD()
1448 if (C.isPowerOf2()) in foldICmpTruncConstant()
1606 if (*XorC == ~C && (C + 1).isPowerOf2()) in foldICmpXorConstant()
1609 if (*XorC == C && (C + 1).isPowerOf2()) in foldICmpXorConstant()
1614 if (*XorC == -C && C.isPowerOf2()) in foldICmpXorConstant()
1618 if (*XorC == C && (-C).isPowerOf2()) in foldICmpXorConstant()
1639 if (!PowerOf2.isPowerOf2()) in foldICmpXorShiftConst()
2063 if (*MaskC == C && (C + 1).isPowerOf2()) { in foldICmpOrConstant()
2238 bool CIsPowerOf2 = C.isPowerOf2(); in foldICmpShlOne()
2395 if ((C + 1).isPowerOf2() && in foldICmpShlConstant()
2403 if (C.isPowerOf2() && in foldICmpShlConstant()
2483 if (!IsAShr && ShiftValC->isPowerOf2() && in foldICmpShrConstant()
2516 (C - 1).isPowerOf2() && C.countLeadingZeros() > ShAmtVal) { in foldICmpShrConstant()
2952 if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() && in foldICmpSubConstant()
2958 if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == C) in foldICmpSubConstant()
3129 if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() && (*C2 & (C - 1)) == 0) in foldICmpAddConstant()
3136 if (Pred == ICmpInst::ICMP_ULT && C2->isPowerOf2() && C == -*C2) in foldICmpAddConstant()
3143 if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == 0) in foldICmpAddConstant()
3478 if (match(BOp1, m_APInt(BOC)) && BOC->sgt(1) && BOC->isPowerOf2()) { in foldICmpBinOpEqualityWithConstant()
4472 assert(ICmpCst.isPowerOf2()); in foldICmpWithTruncSignExtendedVal()
4475 assert(AddCst.ult(ICmpCst) && AddCst.isPowerOf2()); in foldICmpWithTruncSignExtendedVal()
5850 if (Pred == ICmpInst::ICMP_UGT && (~*C).isPowerOf2()) { in foldICmpWithTrunc()
6596 if (C2Pow2.isPowerOf2()) { in foldICmpUsingKnownBits()
6610 if (Op1Known.isConstant() && Op1Known.getConstant().isPowerOf2() && in foldICmpUsingKnownBits()