]> granicus.if.org Git - llvm/commit
AMDGPU/GlobalISel: Fix G_GEP with mixed SGPR/VGPR operands
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 2 Jul 2019 14:40:22 +0000 (14:40 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 2 Jul 2019 14:40:22 +0000 (14:40 +0000)
commit59c422424e79cb98c37c0a4efd4048e3bd3d05ef
tree0a27e7b51de5a2c95cf0e7710cea330b21ebbffd
parent0368e15ad1f40372f8f75e7485a0361ecada650b
AMDGPU/GlobalISel: Fix G_GEP with mixed SGPR/VGPR operands

The register bank for the destination of the sample argument copy was
wrong. We shouldn't be constraining each source to the result register
bank. Allow constraining the original register to the right size.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364928 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
test/CodeGen/AMDGPU/GlobalISel/inst-select-gep.mir
test/CodeGen/AMDGPU/GlobalISel/inst-select-load-smrd.mir