Home | History | Annotate | Download | only in InstCombine

Lines Matching refs:isPowerOf2

170   return (~CI->getValue() + 1).isPowerOf2();
1133 XorCST->getValue() == ~RHSV && (RHSV + 1).isPowerOf2())
1139 XorCST->getValue() == -RHSV && RHSV.isPowerOf2())
1296 if (ICI.isEquality() && RHS == LHSI->getOperand(1) && (-RHSV).isPowerOf2())
1348 bool RHSVIsPowerOf2 = RHSV.isPowerOf2();
1545 RHSV.isPowerOf2() && (LHSV & (RHSV - 1)) == (RHSV - 1))
1554 (RHSV + 1).isPowerOf2() && (LHSV & RHSV) == RHSV)
1592 RHSV.isPowerOf2() && (LHSV & (RHSV - 1)) == 0)
1601 (RHSV + 1).isPowerOf2() && (LHSV & RHSV) == 0)
1621 if (V.sgt(1) && V.isPowerOf2()) {
1694 if (RHS == BOC && RHSV.isPowerOf2())
1904 if (!CI2->getValue().isPowerOf2()) return 0;
2239 if (~Op1KnownZero == 0 && Op0KnownZeroInverted.isPowerOf2()) {
2276 if (~Op1KnownZero == 0 && Op0KnownZeroInverted.isPowerOf2()) {
2897 if (Pow2.isPowerOf2() && isa<IntegerType>(A->getType()) &&