Commit 6f4d660d authored by Noah Goldstein's avatar Noah Goldstein
Browse files

[ValueTracking] Add support for `bswap` and `bitreverse` in `isKnownToBeAPowerOfTwo`

Both of these intrinsics don't change the number of 1s/0s so we can
look directly through them.

Proofs: https://alive2.llvm.org/ce/z/gnZuwC

Differential Revision: https://reviews.llvm.org/D157306
parent 03b529a2
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment