From b5f378e11b7bdcf4a81c98ec535cc487ab9a92f9 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Thu, 18 Jan 2007 18:14:49 +0000 Subject: [PATCH] Use a cheaper computation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33336 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Type.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp index b41d1a0414e..00c6d48dceb 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 -- 2.34.1