OSDN Git Service

AMDGPU/GlobalISel: Redo legality for build_vector
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 21 Dec 2018 03:03:11 +0000 (03:03 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 21 Dec 2018 03:03:11 +0000 (03:03 +0000)
commit8043ea37259994a0a9348d9f96f179bc7118aec1
treee5a546de07b44e0e72e53d1bb918b8e9c9f666a7
parent99c797052e7a9d2c9e7d9997c232d57ef76c0640
AMDGPU/GlobalISel: Redo legality for build_vector

It seems better to avoid using the callback if possible since
there are coverage assertions which are disabled if this is used.

Also fix missing tests. Only test the legal cases since it seems
legalization for build_vector is quite lacking.

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