AMDGPU/SI: Don't try to move scratch wave offset when there are no free SGPRs
authorTom Stellard <thomas.stellard@amd.com>
Thu, 3 Mar 2016 03:45:09 +0000 (03:45 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 3 Mar 2016 03:45:09 +0000 (03:45 +0000)
commit600ca6fd39fe326130e97314775f8a560b098215
tree77b8eb50773a769ad0e70faca9d26ed2ebecec9b
parent3a83ea7ec65d17748ce583851388fc18cd8476a5
AMDGPU/SI: Don't try to move scratch wave offset when there are no free SGPRs

Summary:
When there were no free SGPRs, we were trying to move this value into
some of the reserved registers which was causing a segmentation fault.

Reviewers: arsenm

Subscribers: arsenm, llvm-commits

Differential Revision: http://reviews.llvm.org/D17590

llvm-svn: 262577
llvm/lib/Target/AMDGPU/SIFrameLowering.cpp