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

Chris Lattner clattner at apple.com
Sat Jan 15 17:21:28 PST 2011


On Jan 15, 2011, at 5:02 PM, Chris Lattner wrote:

>> I hope this is fast enough to replace Kernighan-style counting loops even when
>> the input is rather sparse.
> 
> Wow, very nice!  This is quite a bit faster than the old one.  When I replace the manual ctpop loops in crafty with builtin_popcount, the performance still slows down from 5.5s to 5.62s though.  This is very close to making me want to turn it on, particularly given that this is almost certainly a win for all targets with popcount and 32-bit platforms without them.

Oh, also, when I build with -msse42, the runtime is 5.0s - a 10% speedup!

-Chris



More information about the llvm-commits mailing list