This is an archive of the discontinued LLVM Phabricator instance.

[Analysis] Support bitreverse in -demanded-bits pass
ClosedPublic

Authored by modocache on Apr 8 2017, 7:24 PM.

Details

Summary
  • Add a bitreverse case in the demanded bits analysis pass.
  • Add tests for the bitreverse (and bswap) intrinsic in the demanded bits pass.
  • Add a test case to the BDCE tests: that manipulations to high-order bits are eliminated once the bits are reversed and then right-shifted.

Event Timeline

modocache created this revision.Apr 8 2017, 7:24 PM
jmolloy accepted this revision.Apr 11 2017, 12:17 AM

LGTM, thanks!

This revision is now accepted and ready to land.Apr 11 2017, 12:17 AM
modocache closed this revision.Apr 13 2017, 9:57 AM

Great, thanks for the review, @jmolloy!