[AArch64][GlobalISel] Lower G_SHUFFLE_VECTOR with 1 elt src and 1 elt mask.
authorAmara Emerson <aemerson@apple.com>
Fri, 16 Aug 2019 18:06:53 +0000 (18:06 +0000)
committerAmara Emerson <aemerson@apple.com>
Fri, 16 Aug 2019 18:06:53 +0000 (18:06 +0000)
commitc809230a69276ef5d407b6fbfe2b7809572463ba
tree5341ce639986e3ceba612d63b88372da4f898fe4
parent8ff1b7de4dae74f84ce7f419920434b66d62d07a
[AArch64][GlobalISel] Lower G_SHUFFLE_VECTOR with 1 elt src and 1 elt mask.

Again, it's weird that these are allowed. Since lowering support was added in
r368709 we started crashing on compiling the neon intrinsics test in the test
suite. This fixes the lowering to fold the 1 elt src/mask case into copies.

llvm-svn: 369135
llvm/lib/CodeGen/GlobalISel/LegalizerHelper.cpp
llvm/test/CodeGen/AArch64/GlobalISel/legalize-shuffle-vector.mir