diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2011-01-17 12:04:57 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2011-01-17 12:04:57 +0000 |
commit | 24c5184dcaf4ea554bd720b7e21c437f3183e662 (patch) | |
tree | a5a6d3d57131e48e5211204293641253321d47fe /llvm/lib/VMCore/User.cpp | |
parent | 7e7b4ac751a9c84a612f8c7a7c4924c7bd4cd8b8 (diff) | |
download | bcm5719-llvm-24c5184dcaf4ea554bd720b7e21c437f3183e662.tar.gz bcm5719-llvm-24c5184dcaf4ea554bd720b7e21c437f3183e662.zip |
Add a DAGCombine to turn (ctpop x) u< 2 into (x & x-1) == 0.
This shaves off 4 popcounts from the hacked 186.crafty source.
This is enabled even when a native popcount instruction is available. The
combined code is one operation longer but it should be faster nevertheless.
llvm-svn: 123621
Diffstat (limited to 'llvm/lib/VMCore/User.cpp')
0 files changed, 0 insertions, 0 deletions