]> granicus.if.org Git - llvm/commit
AMDGPU/GlobalISel: Legalize G_BUILD_VECTOR v2s16
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 9 Sep 2019 18:57:51 +0000 (18:57 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 9 Sep 2019 18:57:51 +0000 (18:57 +0000)
commit2cfa868dbfd42569fa76a03f8649b36d64b75b20
tree74f7cc5f2258869438bf25f946b23b549c84bb4d
parent7d3778229e968400632a104faa376ef94f852767
AMDGPU/GlobalISel: Legalize G_BUILD_VECTOR v2s16

Handle it the same way as G_BUILD_VECTOR_TRUNC. Arguably only
G_BUILD_VECTOR_TRUNC should be legal for this, but G_BUILD_VECTOR will
probably be more convenient in most cases.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@371440 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/regbankselect-build-vector.v2s16.mir [new file with mode: 0644]