Lines Matching refs:isPowerOf2
1179 if (AP1.isAllOnes() && !AP2.isPowerOf2()) in foldICmpShrConstConst()
1254 if (!CI2->getValue().isPowerOf2()) in processUGT_ADDCST_ADD()
1644 if (*XorC == ~C && (C + 1).isPowerOf2()) in foldICmpXorConstant()
1647 if (*XorC == C && (C + 1).isPowerOf2()) in foldICmpXorConstant()
1652 if (*XorC == -C && C.isPowerOf2()) in foldICmpXorConstant()
1656 if (*XorC == C && (-C).isPowerOf2()) in foldICmpXorConstant()
1926 if (*MaskC == C && (C + 1).isPowerOf2()) { in foldICmpOrConstant()
2066 bool CIsPowerOf2 = C.isPowerOf2(); in foldICmpShlOne()
2221 if ((C + 1).isPowerOf2() && in foldICmpShlConstant()
2229 if (C.isPowerOf2() && in foldICmpShlConstant()
2288 if (!IsAShr && ShiftValC->isPowerOf2() && in foldICmpShrConstant()
2748 if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() && in foldICmpSubConstant()
2754 if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == C) in foldICmpSubConstant()
2840 if (Pred == ICmpInst::ICMP_ULT && C.isPowerOf2() && (*C2 & (C - 1)) == 0) in foldICmpAddConstant()
2847 if (Pred == ICmpInst::ICMP_UGT && (C + 1).isPowerOf2() && (*C2 & C) == 0) in foldICmpAddConstant()
3167 if (match(BOp1, m_APInt(BOC)) && BOC->sgt(1) && BOC->isPowerOf2()) { in foldICmpBinOpEqualityWithConstant()
3222 if (C == *BOC && C.isPowerOf2()) in foldICmpBinOpEqualityWithConstant()
3788 assert(ICmpCst.isPowerOf2()); in foldICmpWithTruncSignExtendedVal()
3791 assert(AddCst.ult(ICmpCst) && AddCst.isPowerOf2()); in foldICmpWithTruncSignExtendedVal()
4683 if (Pow2.isPowerOf2() && isa<IntegerType>(A->getType()) && in foldICmpEquality()
4823 if (Pred == ICmpInst::ICMP_UGT && (~*C).isPowerOf2()) { in foldICmpWithTrunc()
5174 if (CVal.isPowerOf2()) { in processUMulZExtIdiom()
5635 if (C2Pow2.isPowerOf2()) { in foldICmpUsingKnownBits()