Merging r260427:
authorHans Wennborg <hans@hanshq.net>
Fri, 12 Feb 2016 16:18:07 +0000 (16:18 +0000)
committerHans Wennborg <hans@hanshq.net>
Fri, 12 Feb 2016 16:18:07 +0000 (16:18 +0000)
commite469b8a4f8daa8d29fe1d1f8ed87b36114dd5726
tree6fa27ee08cb5e5f8d0017c69c8a4b4938ada2a95
parentec95d6fe25dcb8b1450c4440da7c7a7e2982b6f2
Merging r260427:
------------------------------------------------------------------------
r260427 | nha | 2016-02-10 12:13:58 -0800 (Wed, 10 Feb 2016) | 16 lines

AMDGPU: Release the scavenged offset register during VGPR spill

Summary:
This fixes a crash where subsequent spills would be unable to scavenge
a register. In particular, it fixes a crash in piglit's
spec@glsl-1.50@execution@geometry@max-input-components (the test still
has a shader that fails to compile because of too many SGPR spills, but
at least it doesn't crash any more).

This is a candidate for the release branch.

Reviewers: arsenm, tstellarAMD

Subscribers: qcolombet, arsenm

Differential Revision: http://reviews.llvm.org/D16558
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_38@260687 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIRegisterInfo.cpp
test/CodeGen/AMDGPU/spill-scavenge-offset.ll [new file with mode: 0644]