]> granicus.if.org Git - llvm/commit
AMDGPU/GlobalISel: Legalize G_BUILD_VECTOR_TRUNC
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 9 Sep 2019 17:04:18 +0000 (17:04 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 9 Sep 2019 17:04:18 +0000 (17:04 +0000)
commit93eb1d13640089892dafc0ec2292761d09da2f8c
treec3bafd2481e9854171565ba4caf900c0a9b96f50
parent76de8c13bcb3a4c0d0f91c48cc45a0fec12871ec
AMDGPU/GlobalISel: Legalize G_BUILD_VECTOR_TRUNC

Treat this as legal on gfx9 since it can use S_PACK_* instructions for
this.

This isn't used by anything yet. The same will probably apply to
16-bit G_BUILD_VECTOR without the trunc.

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