AMDGPU/GlobalISel: Fix some legalization of < dword vector stores
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 10 Jun 2020 14:40:35 +0000 (10:40 -0400)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 26 Jun 2020 22:07:39 +0000 (18:07 -0400)
commit443556c18f5310b03891f4685ac3831bdcf6f5c7
tree3d49d953adf6365024168e9c208f701bdd744b3d
parentee3620643dfc88a178fa4ca116cf83014e4ee547
AMDGPU/GlobalISel: Fix some legalization of < dword vector stores

This avoids many instances of failing to legalize a vector truncstore
of <4 x s8> to 2 bytes. We don't perfectly handle every truncstore
yet, largely because the given set of legalization actions can't
actually differentiate between changing the result type and changing
the memory type.
llvm/lib/Target/AMDGPU/AMDGPULegalizerInfo.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-constant.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-flat.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-global.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-local.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-load-private.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/legalize-store.mir