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 /clang/lib/CodeGen/CodeGenModule.cpp | |
| parent | 7e7b4ac751a9c84a612f8c7a7c4924c7bd4cd8b8 (diff) | |
| download | llvm-24c5184dcaf4ea554bd720b7e21c437f3183e662.zip llvm-24c5184dcaf4ea554bd720b7e21c437f3183e662.tar.gz llvm-24c5184dcaf4ea554bd720b7e21c437f3183e662.tar.bz2 | |
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 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
