Commit f387918d authored by Craig Topper's avatar Craig Topper
Browse files

[TargetLowering][RISCV][ARM][AArch64][Mips] Reduce the number of AND mask...

[TargetLowering][RISCV][ARM][AArch64][Mips] Reduce the number of AND mask constants used by BSWAP expansion.

We can reuse constants if we use SRL followed by AND and AND followed by SHL.
Similar was done to bitreverse previously.

Differential Revision: https://reviews.llvm.org/D138045
parent 70dc3b81
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