[PATCH] D79874: [RISCV] Add matching of codegen patterns to RISCV Bit Manipulation Zbs asm instructions

Paolo Savini via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 13 09:10:58 PDT 2020


PaoloS created this revision.
PaoloS added reviewers: simoncook, edward-jones, asb, lewis-revill.
Herald added subscribers: llvm-commits, evandro, luismarques, apazos, sameer.abuasal, pzheng, s.egerton, lenary, Jim, benna, psnobl, jocewei, PkmX, rkruppe, the_o, brucehoult, MartinMosbeck, rogfer01, zzheng, MaskRay, shiva0217, kito-cheng, niosHD, sabuasal, johnrusso, rbar, hiraditya.
Herald added a project: LLVM.

This patch provides optimization of bit manipulation operations by enabling the +experimental-b target feature.
It adds matching of single block patterns of instructions to specific bit-manip instructions from the single-bit subset (zbs subextension) of the experimental B extension of RISC-V.
It adds also the correspondent codegen tests.

This patch is based on Clifford Wolf's proposal for the bit manipulation extension of RISCV:
https://github.com/riscv/riscv-bitmanip/blob/master/bitmanip-0.92.pdf


https://reviews.llvm.org/D79874

Files:
  llvm/lib/Target/RISCV/RISCVInstrInfoB.td
  llvm/test/CodeGen/RISCV/rv32Zbs.ll
  llvm/test/CodeGen/RISCV/rv64Zbs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79874.263742.patch
Type: text/x-patch
Size: 5017 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200513/376a3a52/attachment.bin>


More information about the llvm-commits mailing list