[PATCH] D79870: [RISCV] Add matching of codegen patterns to RISCV Bit Manipulation Zbb asm instructions
Paolo Savini via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed May 13 08:38:16 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, jrtc27, 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 base subset (zbb 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
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D79870
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVInstrInfoB.td
llvm/test/CodeGen/RISCV/rv32Zbb.ll
llvm/test/CodeGen/RISCV/rv64Zbb.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79870.263729.patch
Type: text/x-patch
Size: 12904 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200513/1c4b0af3/attachment.bin>
More information about the llvm-commits
mailing list