]> granicus.if.org Git - llvm/commit
AMDGPU/GlobalISel: Alternative mappings for constants
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 5 Aug 2019 14:40:26 +0000 (14:40 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 5 Aug 2019 14:40:26 +0000 (14:40 +0000)
commit535e6a060bfd55c7a5093778a584d4a6b549d781
treebe4c3b79be5d12f78ff964c53ce781db48e48414
parent23ac1e5009446c69d7d94e8566bf646c9f9305c1
AMDGPU/GlobalISel: Alternative mappings for constants

Without context we assume SGPR. Allowing VGPR constants theoretically
helps avoid a copy. This seems to not actually work now, and the
choice isn't based on the use bank.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@367871 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
test/CodeGen/AMDGPU/GlobalISel/regbankselect-constant.mir [new file with mode: 0644]