Part of the shift lowering creates a (sub XLEN-1, ShAmt). When this
value is used we know that ShAmt is [0..XLEN-1]. Since XLEN is a power
of 2 we can replace the sub with an xor. This allows us to use XORI
instead of LI+SUB.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
clang-format not found in user’s local PATH; not linting file.