summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-01-18 18:14:49 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-01-18 18:14:49 +0000
commitb5f378e11b7bdcf4a81c98ec535cc487ab9a92f9 (patch)
tree7c737b5c4e73436a93fdf7d6b99c6d2f11e2ad7c
parent8205972a5a62a9e80c4772bf7ba3197a125c12f1 (diff)
downloadllvm-b5f378e11b7bdcf4a81c98ec535cc487ab9a92f9.tar.gz
llvm-b5f378e11b7bdcf4a81c98ec535cc487ab9a92f9.tar.bz2
llvm-b5f378e11b7bdcf4a81c98ec535cc487ab9a92f9.tar.xz
Use a cheaper computation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33336 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/VMCore/Type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index b41d1a0414..00c6d48dce 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -977,7 +977,7 @@ const IntegerType *IntegerType::get(unsigned NumBits) {
bool IntegerType::isPowerOf2ByteWidth() const {
unsigned BitWidth = getBitWidth();
- return (BitWidth > 7 && Log2_32(BitWidth) == Log2_32_Ceil(BitWidth));
+ return (BitWidth > 7) && isPowerOf2_32(BitWidth);
}
// FunctionValType - Define a class to hold the key that goes into the TypeMap