[llvm-commits] [llvm] r123547 - /llvm/trunk/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp

Frits van Bommel fvbommel at gmail.com
Sat Jan 15 12:51:32 PST 2011


On Sat, Jan 15, 2011 at 9:30 PM, Benjamin Kramer
<benny.kra at googlemail.com> wrote:
> Author: d0k
> Date: Sat Jan 15 14:30:30 2011
> New Revision: 123547
>
> URL: http://llvm.org/viewvc/llvm-project?rev=123547&view=rev
> Log:
> Reimplement CTPOP legalization with the "best" algorithm from
> http://graphics.stanford.edu/~seander/bithacks.html#CountBitsSetParallel

You seem to be using the "generalization of the best bit counting
method to integers of bit-widths upto 128" from that site. Did you
check whether this works for >128 bits too?

It's probably not very relevant in practice (yet), but it should still
produce correct code...



More information about the llvm-commits mailing list