[AMDGPU] Avoid assert for saved FP
authorStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Tue, 3 Aug 2021 21:50:10 +0000 (14:50 -0700)
committerStanislav Mekhanoshin <Stanislav.Mekhanoshin@amd.com>
Wed, 25 Aug 2021 16:50:59 +0000 (09:50 -0700)
commit11b7ee974a69cabb379b12ce62a808594a53ef95
tree0fabfe2ff1622058435239c6e03a83ac41393501
parenta36bc873a269dca0c5399d72bfdd42d3ddc72671
[AMDGPU] Avoid assert for saved FP

With spilling into AGPRs enabled we cannot reliably predict
if we need to save FP or not. We may finally spill everything
into AGPRs and never touch stack. In this case we still may
save FP. This is deficiency but not an error, so avoid the
assert.

Differential Revision: https://reviews.llvm.org/D107404
llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
llvm/test/CodeGen/AMDGPU/save-fp.ll [new file with mode: 0644]