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)
commitff6b00777215b66f79eae9b16a944aba40998461
tree06e50dc81796f358ed70449e31a2298b0e7ed77b
parent4e21730300554580b8c01bcc238d1742820574f5
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.

llvm-svn: 367871
llvm/lib/Target/AMDGPU/AMDGPURegisterBankInfo.cpp
llvm/test/CodeGen/AMDGPU/GlobalISel/regbankselect-constant.mir [new file with mode: 0644]