[llvm] [RISCV] Add isel special case for (and (shl X, c2), c1) -> (slli_uw (srli x, c4-c2), c4). (PR #91638)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Thu May 9 12:10:35 PDT 2024


topperc wrote:

> Emm, https://github.com/llvm/llvm-project/pull/91626 seems to perform better than this patch. BTW this patch converts some `slli` insts into `slli.uw`, which makes them less compressible.
> 
> 

Can you get reproducers?

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


More information about the llvm-commits mailing list