]> granicus.if.org Git - llvm/commit
[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)
commit8b1cf714be5ee0c5e99d4a322abde8becca7a42e
tree57acd7cd664c602aa1409bd187b0de6ebea7b449
parent3e262a8f4187cb33d32d4e3e08bb718192bdd1ae
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369135 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/GlobalISel/LegalizerHelper.cpp
test/CodeGen/AArch64/GlobalISel/legalize-shuffle-vector.mir