llvm-project
0c1ab02e - [RISCV] Use bseti 31 for (or X, -2147483648) when upper 32 bits aren't used. (#159678)

Commit
156 days ago
[RISCV] Use bseti 31 for (or X, -2147483648) when upper 32 bits aren't used. (#159678) If the original type was i32, type legalization will sign extend the constant. This prevents it from having a single bit set or clear so other patterns can't match. If the upper bits aren't used, we can ignore the sign extension. Similar for bclri and binvi.
Author
Parents
Loading