Skip to content
Commit 66df10ff authored by Craig Topper's avatar Craig Topper
Browse files

[ValueTracking] Calculate the KnownZeros for Intrinsic::ctpop without using a...

[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.

llvm-svn: 300309
parent 1281deaa
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment