[AMDGPU] Remove the dead spill slots while spilling FP/BP to memory
authorvnalamot <VenkataRamanaiah.Nalamothu@amd.com>
Sun, 6 Sep 2020 01:30:36 +0000 (07:00 +0530)
committervnalamot <VenkataRamanaiah.Nalamothu@amd.com>
Sun, 6 Sep 2020 01:34:25 +0000 (07:04 +0530)
commitaff94ec0f4ded3eff2d5c0431f5fec9e41731b05
treeab3e5b68826253ad7130e0659c7766b142af3e46
parent62f89a89f312045f26ec74b73512e2080df35875
[AMDGPU] Remove the dead spill slots while spilling FP/BP to memory

During the PEI pass, the dead TargetStackID::SGPRSpill spill slots
are not being removed while spilling the FP/BP to memory.

Fixes: SWDEV-250393

Reviewed By: arsenm

Differential Revision: https://reviews.llvm.org/D87032
llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
llvm/test/CodeGen/AMDGPU/callee-frame-setup.ll
llvm/test/CodeGen/AMDGPU/stack-realign.ll