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)
commit70a4d3f67ca9e7fa676a90e89470765d0b8246a7
tree0f59d6603c4e15c0c1895457e413e93635f84b2d
parented633992445823cd319bae171a42355455749467
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.

llvm-svn: 364928
llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-gep.mir
llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-load-smrd.mir