[llvm] [RISCV] Add DAG combine to turn (sub (shl X, 8-Y), (shr X, Y)) into orc.b (PR #111828)

Nemanja Ivanovic via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 10 07:19:22 PDT 2024


nemanjai wrote:

> 
> You should promote/refine RISC-V instructions to llvm IR. I wrote a tool for this: https://github.com/dtcxzyw/rvtv. Nevermind, I will provide the proof link later :)
I suppose it can be achieved with a very straightforward naive emulation of `orc.b` like here: https://alive2.llvm.org/ce/z/EnZ85B


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


More information about the llvm-commits mailing list