[PATCH] D91259: [RISCV] Lower GREVI and GORCI as custom nodes
Fraser Cormack via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 11 06:57:41 PST 2020
frasercrmck created this revision.
Herald added subscribers: llvm-commits, NickHung, evandro, luismarques, apazos, sameer.abuasal, pzheng, steven.zhang, s.egerton, lenary, Jim, benna, psnobl, jocewei, PkmX, the_o, brucehoult, MartinMosbeck, rogfer01, edward-jones, zzheng, jrtc27, shiva0217, kito-cheng, niosHD, sabuasal, simoncook, johnrusso, rbar, asb, hiraditya.
Herald added a project: LLVM.
frasercrmck requested review of this revision.
Herald added a subscriber: MaskRay.
This moves the recognition of GREVI and GORCI from TableGen patterns
into a DAGCombine. This is done primarily to match "deeper" patterns in
the future, like (grevi (grevi x, 1) 2) -> (grevi x, 3).
TableGen is not best suited to matching patterns such as these as the compile
time of the DAG matchers quickly gets out of hand due to the expansion of
commutative permutations.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D91259
Files:
llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/lib/Target/RISCV/RISCVISelLowering.h
llvm/lib/Target/RISCV/RISCVInstrInfoB.td
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91259.304506.patch
Type: text/x-patch
Size: 17337 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201111/a5eb3fab/attachment.bin>
More information about the llvm-commits
mailing list