[PATCH] D118430: [RISCV] Custom legalize BITREVERSE with Zbkb.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 27 21:26:14 PST 2022


craig.topper created this revision.
craig.topper added reviewers: frasercrmck, VincentWu, asb, achieveartificialintelligence, luismarques.
Herald added subscribers: luke957, StephenFan, vkmr, evandro, apazos, sameer.abuasal, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
craig.topper requested review of this revision.
Herald added subscribers: pcwang-thead, eopXD, MaskRay.
Herald added a project: LLVM.

With Zbkb, a bitreverse can be split into a rev8 and a brev8.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D118430

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVISelLowering.h
  llvm/lib/Target/RISCV/RISCVInstrInfoZb.td
  llvm/test/CodeGen/RISCV/bswap-bitreverse.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D118430.403879.patch
Type: text/x-patch
Size: 46918 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220128/af406b45/attachment.bin>


More information about the llvm-commits mailing list