Skip to content
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
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment