[AArch64][GlobalISel] Add an optimization to select vector DUP instructions.
authorAmara Emerson <aemerson@apple.com>
Tue, 19 Mar 2019 21:43:05 +0000 (21:43 +0000)
committerAmara Emerson <aemerson@apple.com>
Tue, 19 Mar 2019 21:43:05 +0000 (21:43 +0000)
commit761ca2e53b843cc40637c1d418d7b38e3cbee158
tree0b024dfdf8d9811133feef7856d15a492cfcda9e
parent18e2c5724ac6ea146c0db08932faedc53fb963c2
[AArch64][GlobalISel] Add an optimization to select vector DUP instructions.

This adds pattern matching for the insert+shufflevector sequence so we can
generate dup instructions instead of the current TBL sequence.

Differential Revision: https://reviews.llvm.org/D59558

llvm-svn: 356526
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/opt-shuffle-splat.mir [new file with mode: 0644]