Lines Matching refs:isPowerOf2
182 return (~CI->getValue() + 1).isPowerOf2(); in isHighOnes()
1481 if (AP1.isAllOnesValue() && !AP2.isPowerOf2()) in FoldICmpCstShrCst()
1628 XorCst->getValue() == ~RHSV && (RHSV + 1).isPowerOf2()) in visitICmpInstWithInstAndIntCst()
1634 XorCst->getValue() == -RHSV && RHSV.isPowerOf2()) in visitICmpInstWithInstAndIntCst()
1850 if (ICI.isEquality() && RHS == LHSI->getOperand(1) && (-RHSV).isPowerOf2()) in visitICmpInstWithInstAndIntCst()
1928 bool RHSVIsPowerOf2 = RHSV.isPowerOf2(); in visitICmpInstWithInstAndIntCst()
2135 RHSV.isPowerOf2() && (LHSV & (RHSV - 1)) == (RHSV - 1)) in visitICmpInstWithInstAndIntCst()
2144 (RHSV + 1).isPowerOf2() && (LHSV & RHSV) == RHSV) in visitICmpInstWithInstAndIntCst()
2182 RHSV.isPowerOf2() && (LHSV & (RHSV - 1)) == 0) in visitICmpInstWithInstAndIntCst()
2191 (RHSV + 1).isPowerOf2() && (LHSV & RHSV) == 0) in visitICmpInstWithInstAndIntCst()
2211 if (V.sgt(1) && V.isPowerOf2()) { in visitICmpInstWithInstAndIntCst()
2296 if (RHS == BOC && RHSV.isPowerOf2()) in visitICmpInstWithInstAndIntCst()
2509 if (!CI2->getValue().isPowerOf2()) return nullptr; in ProcessUGT_ADDCST_ADD()
2770 if (CVal.isPowerOf2()) { in ProcessUMulZExtIdiom()
3436 if (ValToCheck.isPowerOf2()) { in visitICmpInst()
3440 } else if ((++ValToCheck).isPowerOf2()) { in visitICmpInst()
3480 if (ValToCheck.isPowerOf2()) { in visitICmpInst()
3484 } else if ((++ValToCheck).isPowerOf2()) { in visitICmpInst()
4202 if (Pow2.isPowerOf2() && isa<IntegerType>(A->getType()) && in visitICmpInst()