summaryrefslogtreecommitdiffstats
path: root/llvm/test/Analysis/DemandedBits/intrinsics.ll
Commit message (Collapse)AuthorAgeFilesLines
* [DemandedBits] Add support for funnel shiftsNikita Popov2018-11-261-0/+79
| | | | | | | | | | | | | | Add support for funnel shifts to the DemandedBits analysis. The demanded bits of the first two operands can be determined if the shift amount is constant. The demanded bits of the third operand (shift amount) can be determined if the bitwidth is a power of two. This is basically the same functionality as implemented in D54869 and D54478, but for DemandedBits rather than InstCombine. Differential Revision: https://reviews.llvm.org/D54876 llvm-svn: 347561
* Fix tests after move to utohexstr.Benjamin Kramer2017-12-281-6/+6
| | | | llvm-svn: 321527
* [Analysis] Support bitreverse in -demanded-bits passBrian Gesiak2017-04-131-0/+25
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. Reviewers: mkuper, jmolloy, hfinkel, trentxintong Reviewed By: jmolloy Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D31857 llvm-svn: 300215
OpenPOWER on IntegriCloud