Use binop_allwusers and doPeepholeSExtW to Remove sext_inreg+riscv_grev/riscv_gorc isel patterns.
There is special when Imm is 7, becase of existing two patterns:
Pat<(riscv_gorc GPR:$rs1, 7), (ORC_B GPR:$rs1)>,
Pat<(riscv_grev GPR:$rs1, 7), (BREV8 GPR:$rs1).
So I still keep sext_inreg+riscv_grev/riscv_gorc when imm is 7.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
LGTM.
Though I wonder at what point we should delete all code for non-ratified bitmanip ISAs. The Bitmanip task group doesn't appear to be active anymore so these instructions may never become official and the opcodes may get claimed for something else.
Comment Actions
Yeah I've been wondering about that too. Feels like nobody's sure. Only yesterday I noticed that spike supports these non-ratified ones as a custom Xbitmanip (XZbp etc) extension(s). Not that that's a reason to keep them, it's just an interesting data point.