[AArch64][GlobalISel] Select all-zero G_BUILD_VECTOR into a zero mov.
authorAmara Emerson <amara@apple.com>
Fri, 18 Sep 2020 18:33:16 +0000 (11:33 -0700)
committerAmara Emerson <amara@apple.com>
Thu, 1 Oct 2020 06:53:38 +0000 (23:53 -0700)
commitda11479fd1fa62e59a16790f4dc2d80c9facf2da
tree7568677817d8d35e9a204df67d8d2b568d919908
parent1fedd90cc7a8deabf7d75d3e668bd56ce9b1ffcc
[AArch64][GlobalISel] Select all-zero G_BUILD_VECTOR into a zero mov.

Unfortunately the leaf SDAG patterns aren't supported yet so we need to do
this manually, but it's not a significant amount of code anyway.

Differential Revision: https://reviews.llvm.org/D87924
llvm/lib/Target/AArch64/GISel/AArch64InstructionSelector.cpp
llvm/test/CodeGen/AArch64/GlobalISel/select-build-vector.mir
llvm/test/CodeGen/AArch64/arm64-vabs.ll
llvm/test/CodeGen/AArch64/combine-loads.ll