]> granicus.if.org Git - llvm/commit
AMDGPU: Don't add emergency stack slot if all spills are SGPR->VGPR
authorMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 22 Feb 2017 22:23:32 +0000 (22:23 +0000)
committerMatt Arsenault <Matthew.Arsenault@amd.com>
Wed, 22 Feb 2017 22:23:32 +0000 (22:23 +0000)
commit206dfa3c0d74e8c152a10596f065aa62ce99f91b
treeea81ee3c1bda2bcf20948c6648f85e393f06c83d
parent4ddfe6915d12e8a74b9567d8b3aeaee89c92f10c
AMDGPU: Don't add emergency stack slot if all spills are SGPR->VGPR

This should avoid reporting any stack needs to be allocated in the
case where no stack is truly used. An unused stack slot is still
left around in other cases where there are real stack objects
but no spilling occurs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@295891 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIFrameLowering.cpp
test/CodeGen/AMDGPU/si-sgpr-spill.ll