AMDGPU: Move a flawed assert when spilling SGPRs
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 23 Apr 2018 16:13:30 +0000 (16:13 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Mon, 23 Apr 2018 16:13:30 +0000 (16:13 +0000)
commitb21f9592bed0cb0510c5b6c7e831df774c1105a4
treee9fb9a13d696db36d3889d40e4c8ec39ee3ce11a
parent8cd01aaa0f84a5fc9b95f2061bab0ab1ab543d47
AMDGPU: Move a flawed assert when spilling SGPRs

It's possible to validly spill the frame offset register
in a call sequence to a VGPR. There are definitely issues
with SGPR spilling to memory, so move the assert later.

llvm-svn: 330612
llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
llvm/lib/Target/AMDGPU/SIRegisterInfo.cpp
llvm/test/CodeGen/AMDGPU/spill-csr-frame-ptr-reg-copy.ll [new file with mode: 0644]