summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/User.cpp
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2011-01-17 12:04:57 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2011-01-17 12:04:57 +0000
commit24c5184dcaf4ea554bd720b7e21c437f3183e662 (patch)
treea5a6d3d57131e48e5211204293641253321d47fe /llvm/lib/VMCore/User.cpp
parent7e7b4ac751a9c84a612f8c7a7c4924c7bd4cd8b8 (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud