diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-14 06:43:34 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-14 06:43:34 +0000 |
commit | 66df10ff63de98eb6a5a325dd98f45cfb5ccbb5b (patch) | |
tree | 89c4fdc0db4025657528c8213d212df2985cfb66 /llvm/lib/CodeGen/TargetSchedule.cpp | |
parent | 1281deaa00cb47caebb454f72a89763b0e3b9119 (diff) | |
download | bcm5719-llvm-66df10ff63de98eb6a5a325dd98f45cfb5ccbb5b.tar.gz bcm5719-llvm-66df10ff63de98eb6a5a325dd98f45cfb5ccbb5b.zip |
[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
Diffstat (limited to 'llvm/lib/CodeGen/TargetSchedule.cpp')
0 files changed, 0 insertions, 0 deletions