OSDN Git Service

[ValueTracking] Calculate the KnownZeros for Intrinsic::ctpop without using a tempora...
authorCraig Topper <craig.topper@gmail.com>
Fri, 14 Apr 2017 06:43:34 +0000 (06:43 +0000)
committerCraig Topper <craig.topper@gmail.com>
Fri, 14 Apr 2017 06:43:34 +0000 (06:43 +0000)
commit3557926315cee46b72d39acc44efd65e89b9f4e7
tree4ba245f7b41a13b861bccb1cba36844fb54c70ce
parent7796f70177bdee116d530d1cb71199dda1719d8b
[ValueTracking] Calculate the KnownZeros for Intrinsic::ctpop without using a temporary APInt to count leading zeros on.

The APInt was created from an 'unsigned' and we just wanted to know how many bits the value needed to represent it. We can just use Log2_32 from MathExtras.h to get the info.

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