[PATCH] D99324: [AArch64][SVE] Simplify codegen of svdup_lane intrinsic
JunMa via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 25 02:13:40 PDT 2021
junparser created this revision.
junparser added reviewers: david-arm, sdesmalen, peterwaller-arm, paulwalker-arm, efriedma.
Herald added subscribers: psnobl, hiraditya, kristof.beyls, tschuett.
junparser requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
For now we generate svdup_lane into sve.dup.x + sve.tbl, however, the semantics of this intrinsic match the DUP (indexed) instruction if the second input is a constant in the range of that instruction.
This patch adds the pattern match for sve.dup.x + sve.tbl whihc generate the right version of dup: DUP <Zd>.<T>, <Zn>.<T>[<imm>]
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D99324
Files:
llvm/lib/Target/AArch64/AArch64InstrFormats.td
llvm/lib/Target/AArch64/AArch64SVEInstrInfo.td
llvm/lib/Target/AArch64/SVEInstrFormats.td
llvm/test/CodeGen/AArch64/sve-intrinsics-dup-x.ll
llvm/test/CodeGen/AArch64/sve-ld-post-inc.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99324.333235.patch
Type: text/x-patch
Size: 12391 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210325/92fc9b5b/attachment.bin>
More information about the llvm-commits
mailing list