[PATCH] D91016: [RISCV] Add isel patterns to match sbset/sbclr/sbinv/sbext even if the shift amount isn't masked.
Craig Topper via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Nov 7 14:54:22 PST 2020
craig.topper created this revision.
craig.topper added reviewers: asb, lenary, luismarques, frasercrmck, lewis-revill, PaoloS.
Herald added subscribers: NickHung, evandro, apazos, sameer.abuasal, pzheng, s.egerton, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, hiraditya.
Herald added a project: LLVM.
craig.topper requested review of this revision.
Herald added a subscriber: MaskRay.
This uses the shiftop PatFrags to handle the masked shift amount
and unmasked shift amount cases. That also checks XLen as part
of the masked amount check so we don't need separate RV32 and RV64
patterns.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D91016
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: D91016.303677.patch
Type: text/x-patch
Size: 7079 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201107/152677eb/attachment.bin>
More information about the llvm-commits
mailing list