[GlobalISel][AArch64] Gardening: Factor out vector inserts
authorJessica Paquette <jpaquette@apple.com>
Wed, 13 Mar 2019 23:22:23 +0000 (23:22 +0000)
committerJessica Paquette <jpaquette@apple.com>
Wed, 13 Mar 2019 23:22:23 +0000 (23:22 +0000)
commit16d67a3e320b1777224509a390489395c652723c
tree402d85b596102ea22502d431465e884a5acb40a6
parent42bc1e241c822304e42d4af3de8c8fa7e0c620dc
[GlobalISel][AArch64] Gardening: Factor out vector inserts

Factor out the vector insert code in `selectBuildVector`. Replace part of it
with `emitScalarToVector`, since it was pretty much equivalent.

This will make implementing G_INSERT_VECTOR_ELT easier.

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

llvm-svn: 356106
llvm/lib/Target/AArch64/AArch64InstructionSelector.cpp