Lines Matching refs:isPowerOf2
1004 if (AP1.isAllOnes() && !AP2.isPowerOf2()) in foldICmpShrConstConst()
1079 if (!CI2->getValue().isPowerOf2()) in processUGT_ADDCST_ADD()
1437 if (C.isPowerOf2()) in foldICmpTruncConstant()
1589 if (*XorC == ~C && (C + 1).isPowerOf2()) in foldICmpXorConstant()
1592 if (*XorC == C && (C + 1).isPowerOf2()) in foldICmpXorConstant()
1597 if (*XorC == -C && C.isPowerOf2()) in foldICmpXorConstant()
1601 if (*XorC == C && (-C).isPowerOf2()) in foldICmpXorConstant()
1622 if (!PowerOf2.isPowerOf2()) in foldICmpXorShiftConst()
2003 if (*MaskC == C && (C + 1).isPowerOf2()) { in foldICmpOrConstant()
2178 bool CIsPowerOf2 = C.isPowerOf2(); in foldICmpShlOne()
2335 if ((C + 1).isPowerOf2() && in foldICmpShlConstant()
2343 if (C.isPowerOf2() && in foldICmpShlConstant()
2402 if (!IsAShr && ShiftValC->isPowerOf2() && in foldICmpShrConstant()
2861 if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() && in foldICmpSubConstant()
2867 if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == C) in foldICmpSubConstant()
3038 if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() && (*C2 & (C - 1)) == 0) in foldICmpAddConstant()
3045 if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == 0) in foldICmpAddConstant()
3369 if (match(BOp1, m_APInt(BOC)) && BOC->sgt(1) && BOC->isPowerOf2()) { in foldICmpBinOpEqualityWithConstant()
4178 assert(ICmpCst.isPowerOf2()); in foldICmpWithTruncSignExtendedVal()
4181 assert(AddCst.ult(ICmpCst) && AddCst.isPowerOf2()); in foldICmpWithTruncSignExtendedVal()
5521 if (Pred == ICmpInst::ICMP_UGT && (~*C).isPowerOf2()) { in foldICmpWithTrunc()
6267 if (C2Pow2.isPowerOf2()) { in foldICmpUsingKnownBits()
6281 if (Op1Known.isConstant() && Op1Known.getConstant().isPowerOf2() && in foldICmpUsingKnownBits()