From: Reid Spencer Date: Thu, 18 Jan 2007 18:14:49 +0000 (+0000) Subject: Use a cheaper computation. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=b5f378e11b7bdcf4a81c98ec535cc487ab9a92f9;p=oota-llvm.git Use a cheaper computation. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@33336 91177308-0d34-0410-b5e6-96231b3b80d8 --- 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