[AMDGPU] Allow to use a whole register file on gfx90a for VGPRs
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 13 Oct 2021 22:47:07 +0000 (15:47 -0700)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Fri, 22 Oct 2021 01:24:34 +0000 (18:24 -0700)
commitca0c92d6a1cc93ea83411511848644cb217c31ce
treec22e5d9ae362a3f2305e30f4a5c9f69943610bb4
parent3bbc869e2ef26f3bc296d5b4e23ee8678a20fc0b
[AMDGPU] Allow to use a whole register file on gfx90a for VGPRs

In a kernel which does not have calls or AGPR usage we can allocate
the whole vector register budget for VGPRs and have no AGPRs as
long as VGPRs stay addressable (i.e. below 256).

Differential Revision: https://reviews.llvm.org/D111764
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/test/CodeGen/AMDGPU/amdgpu-codegenprepare-idiv.ll
llvm/test/CodeGen/AMDGPU/attr-amdgpu-flat-work-group-size-vgpr-limit.ll
llvm/test/CodeGen/AMDGPU/vgpr-agpr-limit-gfx90a.ll [new file with mode: 0644]