summaryrefslogtreecommitdiffstats
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
commitf15cd5637bb1bc8e0945e45260a45933b09cb5f1 (patch)
tree97cab8b8d4b9d11590229a34cf93ca732a4c228e
parent726b68bc6e12311067648b623d72248f94b187cd (diff)
downloadbcm5719-llvm-f15cd5637bb1bc8e0945e45260a45933b09cb5f1.tar.gz
bcm5719-llvm-f15cd5637bb1bc8e0945e45260a45933b09cb5f1.zip
Use a cheaper computation.
llvm-svn: 33336
-rw-r--r--llvm/lib/VMCore/Type.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/VMCore/Type.cpp b/llvm/lib/VMCore/Type.cpp
index b41d1a0414e..00c6d48dceb 100644
--- a/llvm/lib/VMCore/Type.cpp
+++ b/llvm/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
OpenPOWER on IntegriCloud