[AArch64][GlobalISel][RegBankSelect] Improve rbs of G_BUILD_VECTOR when fed by fp...
authorAmara Emerson <amara@apple.com>
Thu, 4 Mar 2021 18:18:31 +0000 (10:18 -0800)
committerAmara Emerson <amara@apple.com>
Thu, 4 Mar 2021 23:09:05 +0000 (15:09 -0800)
commit501f6a4e9e60fe54345f687d5d38f1cab52517ad
tree5ace613d91281a94b3ffce2cbaf9a480f4032c7f
parent2b957ed4ff3344d8f761a053566e307277a1cdeb
[AArch64][GlobalISel][RegBankSelect] Improve rbs of G_BUILD_VECTOR when fed by fp values.

This is actually two changes. One is to avoid copies when fp values are fed into
a build_vector, without being able to tell from the opcode.

The other is that build_vectors are also marked as only defining FP, since they
produce vector results.

Differential Revision: https://reviews.llvm.org/D97968
llvm/lib/Target/AArch64/GISel/AArch64RegisterBankInfo.cpp
llvm/test/CodeGen/AArch64/GlobalISel/regbankselect-build-vector.mir
llvm/test/CodeGen/AArch64/combine-loads.ll