summaryrefslogtreecommitdiffstats
path: root/llvm/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
commitf1a04edb4277ea85e854a4c291f28ef2f8fecfcd (patch)
treed15207fb39735ad7ea95c25f3697193f888f2bb1 /llvm/lib/Support/APInt.cpp
parent5d75f0bdddb48837def2fad2bc2ad3359b414a16 (diff)
downloadbcm5719-llvm-f1a04edb4277ea85e854a4c291f28ef2f8fecfcd.tar.gz
bcm5719-llvm-f1a04edb4277ea85e854a4c291f28ef2f8fecfcd.zip
APInt: microoptimize a few methods.
llvm-svn: 120912
Diffstat (limited to 'llvm/lib/Support/APInt.cpp')
-rw-r--r--llvm/lib/Support/APInt.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Support/APInt.cpp b/llvm/lib/Support/APInt.cpp
index 9d8f8be1277..e7ff15cadb8 100644
--- a/llvm/lib/Support/APInt.cpp
+++ b/llvm/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.
OpenPOWER on IntegriCloud