APInt has a method for determining whether a number is a power of 2
authorDuncan Sands <baldrick@free.fr>
Wed, 26 Jan 2011 08:44:16 +0000 (08:44 +0000)
committerDuncan Sands <baldrick@free.fr>
Wed, 26 Jan 2011 08:44:16 +0000 (08:44 +0000)
commit464a4f349c95a25d06d709e79d7df21fbbb155e2
tree64138b42f42f19719c229bd1237a006084fbfe6e
parente19b7b80bd1bf48f9a6f036cf1cbc5f65445090a
APInt has a method for determining whether a number is a power of 2
which is more efficient than countPopulation - use it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124283 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ValueTracking.cpp