]> granicus.if.org Git - llvm/commit
AMDGPU/GlobalISel: Allow VGPR to index SGPR register
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 3 Oct 2019 17:50:32 +0000 (17:50 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Thu, 3 Oct 2019 17:50:32 +0000 (17:50 +0000)
commitbde9662fef07a941079249322d97e3417519c68e
tree07cee1af56aa39749709a02d750df4d1c2ebd162
parent5e7be8b1bc82556d94e704606dc52ebba6b176d0
AMDGPU/GlobalISel: Allow VGPR to index SGPR register

We can still do a waterfall loop over the index if using a VGPR to
index an SGPR. The result will still be a VGPR, but we can avoid the
wide copy of the source register to a VGPR.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@373637 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/regbankselect-extract-vector-elt.mir