[llvm] [RISCV] Remove artificial restriction on ShAmt from (shl (and X, C2), C) -> (slli (srliw X, C3), C3+C) isel. (PR #143010)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 5 11:20:12 PDT 2025


topperc wrote:

> LGTM, modulo the commit message. I think you are relaxing the `(shl (and X, C2), C) -> (srli (slli X, C4), C4-C)` pattern.

You're right. I copied the wrong comment while I was writing the message

https://github.com/llvm/llvm-project/pull/143010


More information about the llvm-commits mailing list