aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorJessica Paquette <jpaquette@apple.com>2020-06-04 17:08:36 -0700
committerJessica Paquette <jpaquette@apple.com>2020-06-05 17:46:28 -0700
commit8f262a686e5ecd25552d6992bbccb08a8f5c3f26 (patch)
tree46c9137b447d0dcf4ba92b4c6509fcaaccbf9ea2 /llvm/tools/llvm-objdump/llvm-objdump.cpp
parent7d59f49bdaddf053d74de9ef57c7ec64bdf4fa25 (diff)
downloadllvm-8f262a686e5ecd25552d6992bbccb08a8f5c3f26.zip
llvm-8f262a686e5ecd25552d6992bbccb08a8f5c3f26.tar.gz
llvm-8f262a686e5ecd25552d6992bbccb08a8f5c3f26.tar.bz2
[AArch64][GlobalISel] Move dup optimization into post-legalizer combiner
Since all of the other G_SHUFFLE_VECTOR transforms are going there, let's do this with dup as well. This is nice, because it lets us split up the original code into matching, register bank selection, and instruction selection. - Create G_DUP, make it equivalent to AArch64dup - Add a post-legalizer combine which is 90% a copy-and-paste from tryOptVectorDup, except with shuffle matching closer to what SelectionDAG does in `ShuffleVectorSDNode::isSplatMask`. - Teach RegBankSelect about G_DUP. Since dup selection relies on the correct register bank for FP/GPR dup selection, this is necessary. - Kill `tryOptVectorDup`, since it's now entirely handled by G_DUP. - Add testcases for the combine, RegBankSelect, and selection. The selection test gives the same selection results as the old test. Differential Revision: https://reviews.llvm.org/D81221
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions