[llvm-commits] CVS: llvm/lib/VMCore/Type.cpp

Reid Spencer reid at x10sys.com
Thu Jan 18 10:15:05 PST 2007



Changes in directory llvm/lib/VMCore:

Type.cpp updated: 1.162 -> 1.163
---
Log message:

Use a cheaper computation.


---
Diffs of the changes:  (+1 -1)

 Type.cpp |    2 +-
 1 files changed, 1 insertion(+), 1 deletion(-)


Index: llvm/lib/VMCore/Type.cpp
diff -u llvm/lib/VMCore/Type.cpp:1.162 llvm/lib/VMCore/Type.cpp:1.163
--- llvm/lib/VMCore/Type.cpp:1.162	Wed Jan 17 20:59:54 2007
+++ llvm/lib/VMCore/Type.cpp	Thu Jan 18 12:14:49 2007
@@ -977,7 +977,7 @@
 
 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






More information about the llvm-commits mailing list