[PATCH] D79871: [RISCV] Add matching of codegen patterns to RISCV Bit Manipulation Zbp asm instructions

Paolo Savini via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed May 13 08:38:18 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 permutation subset (zbp 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/D79871

Files:
  llvm/lib/Target/RISCV/RISCVISelLowering.cpp
  llvm/lib/Target/RISCV/RISCVInstrInfoB.td
  llvm/test/CodeGen/RISCV/rv32Zbp.ll
  llvm/test/CodeGen/RISCV/rv64Zbp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79871.263737.patch
Type: text/x-patch
Size: 22767 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200513/1d7934db/attachment.bin>


More information about the llvm-commits mailing list