summaryrefslogtreecommitdiff
path: root/lib/Support/APInt.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2010-12-04 18:05:36 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2010-12-04 18:05:36 +0000
commitfd6d53fbad9d3f48da4910ebba12d9d2a3c24bd8 (patch)
tree63458a991f69ce7f68167890448f32f89d8888ad /lib/Support/APInt.cpp
parentbd7d2622a2ee828a02017dca19170b6f79ff6684 (diff)
downloadllvm-fd6d53fbad9d3f48da4910ebba12d9d2a3c24bd8.tar.gz
llvm-fd6d53fbad9d3f48da4910ebba12d9d2a3c24bd8.tar.bz2
llvm-fd6d53fbad9d3f48da4910ebba12d9d2a3c24bd8.tar.xz
APInt: microoptimize a few methods.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120912 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Support/APInt.cpp')
-rw-r--r--lib/Support/APInt.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/Support/APInt.cpp b/lib/Support/APInt.cpp
index 9d8f8be127..e7ff15cadb 100644
--- a/lib/Support/APInt.cpp
+++ b/lib/Support/APInt.cpp
@@ -759,10 +759,6 @@ APInt APInt::getLoBits(unsigned numBits) const {
BitWidth - numBits);
}
-bool APInt::isPowerOf2() const {
- return (!!*this) && !(*this & (*this - APInt(BitWidth,1)));
-}
-
unsigned APInt::countLeadingZerosSlowCase() const {
// Treat the most significand word differently because it might have
// meaningless bits set beyond the precision.