HomePhabricator

[AMDGPU] Remove the dead spill slots while spilling FP/BP to memory

Authored by RamNalamothu on Sep 5 2020, 6:30 PM.

Description

[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

Details