> +bool IntegerType::isPowerOf2ByteWidth() const {
> +  unsigned BitWidth = getBitWidth();
> +  return (BitWidth > 7 && Log2_32(BitWidth) == Log2_32_Ceil 
> (BitWidth));
> +}
> +

Please use the isPowerOf2_32 function or use ((BitWidth-1) &  
BitWidth) == 0 instead of two Log2_32 calls.

Thanks,

-Chris
_______________________________________________
llvm-commits mailing list
llvm-commits@cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits

Reply via email to