AMDGPU: Use reserved VGPR for AGPR spills to memory
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Fri, 4 Feb 2022 19:29:12 +0000 (14:29 -0500)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Tue, 8 Feb 2022 16:26:59 +0000 (11:26 -0500)
commitf2c99ea47da3ded530fa94fe96f486338fffc99c
tree3fa7d3f73b6343e586fd2b850e8fab517db18ccd
parentc302f1e6771b0cbfad466e56f19e36d4dcaecd11
AMDGPU: Use reserved VGPR for AGPR spills to memory

Previously would reuse the VGPR used for large frame offsets with the
one needed for copying from the AGPR. Fix this by reusing the register
we already reserved for handling AGPR to AGPR copies.
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/test/CodeGen/AMDGPU/accvgpr-spill-scc-clobber.mir
llvm/test/CodeGen/AMDGPU/agpr-copy-no-free-registers.ll
llvm/test/CodeGen/AMDGPU/pei-build-av-spill.mir
llvm/test/CodeGen/AMDGPU/pei-build-spill.mir
llvm/test/CodeGen/AMDGPU/spill-agpr-partially-undef.mir
llvm/test/CodeGen/AMDGPU/spill-agpr.ll
llvm/test/CodeGen/AMDGPU/spill-agpr.mir