Home | History | Annotate | Download | only in Analysis

Lines Matching defs:isPowerOfTwo

711 /// isPowerOfTwo - Return true if the given value is known to have exactly one
715 bool llvm::isPowerOfTwo(Value *V, const TargetData *TD, unsigned Depth) {
735 return isPowerOfTwo(ZI->getOperand(0), TD, Depth);
738 return isPowerOfTwo(SI->getTrueValue(), TD, Depth) &&
739 isPowerOfTwo(SI->getFalseValue(), TD, Depth);
748 return isPowerOfTwo(PEO->getOperand(0), TD, Depth);
849 if (XKnownNonNegative && isPowerOfTwo(Y, TD, Depth))
851 if (YKnownNonNegative && isPowerOfTwo(X, TD, Depth))