[PATCH] D79873: [RISCV] Add matching of codegen patterns to RISCV Bit Manipulation Zbbp asm instructions
Paolo Savini via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 13 09:10:53 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.
PaoloS added a parent revision: D79871: [RISCV] Add matching of codegen patterns to RISCV Bit Manipulation Zbp asm instructions.
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 belonging to both the permutation and the base subsets 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/D79873
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVInstrInfoB.td
llvm/test/CodeGen/RISCV/rv32Zbbp.ll
llvm/test/CodeGen/RISCV/rv64Zbbp.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79873.263741.patch
Type: text/x-patch
Size: 9180 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200513/9176024a/attachment.bin>
More information about the llvm-commits
mailing list