[PATCH] D29543: AMDGPU: Don't add emergency stack slot if all spills are SGPR->VGPR

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Feb 4 10:34:30 PST 2017


arsenm created this revision.
Herald added subscribers: tpr, tony-tye, yaxunl, wdng, kzhuravl, qcolombet.
Herald added a reviewer: tstellarAMD.

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.


https://reviews.llvm.org/D29543

Files:
  lib/Target/AMDGPU/SIFrameLowering.cpp
  test/CodeGen/AMDGPU/si-sgpr-spill.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29543.87101.patch
Type: text/x-patch
Size: 6132 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170204/6d8935d8/attachment.bin>


More information about the llvm-commits mailing list