[PATCH] D97731: [AArch64][GlobalISel] Lower G_BUILD_VECTOR -> G_DUP
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 4 15:49:01 PST 2021
paquette updated this revision to Diff 328328.
paquette added a comment.
This time, disallow 0 and 1 specifically.
I think there are some DUP combines we're going to want. If 90% of the time it's better to represent this as DUP, I think it's probably better to prefer that.
Also improve the helpers a little bit. I figured it'd be nice to have a general helper which gives you either a constant or a register for the dup matching.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D97731/new/
https://reviews.llvm.org/D97731
Files:
llvm/include/llvm/CodeGen/GlobalISel/Utils.h
llvm/lib/CodeGen/GlobalISel/Utils.cpp
llvm/lib/Target/AArch64/AArch64Combine.td
llvm/lib/Target/AArch64/CMakeLists.txt
llvm/lib/Target/AArch64/GISel/AArch64GlobalISelUtils.cpp
llvm/lib/Target/AArch64/GISel/AArch64GlobalISelUtils.h
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/lib/Target/AArch64/GISel/AArch64PostLegalizerLowering.cpp
llvm/test/CodeGen/AArch64/GlobalISel/postlegalizer-lowering-build-vector-to-dup.mir
llvm/test/CodeGen/AArch64/GlobalISel/postlegalizer-lowering-vashr-vlshr.mir
llvm/test/CodeGen/AArch64/GlobalISel/select-dup.mir
llvm/test/CodeGen/AArch64/GlobalISel/select-vector-shift.mir
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D97731.328328.patch
Type: text/x-patch
Size: 27992 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210304/539cdd92/attachment.bin>
More information about the llvm-commits
mailing list