OSDN Git Service

AMDGPU/SI: Don't use reserved VGPRs for SGPR spilling
authorTom Stellard <thomas.stellard@amd.com>
Thu, 28 Jul 2016 14:30:43 +0000 (14:30 +0000)
committerTom Stellard <thomas.stellard@amd.com>
Thu, 28 Jul 2016 14:30:43 +0000 (14:30 +0000)
commit04cc0adf589f95af1b2377a290d243bb7f9d7bad
tree8650ca009492712129910c60590ef4fd97c9e3a1
parent0e9859b9a81ebaffed4ca95d5cf46dfd64bb244d
AMDGPU/SI: Don't use reserved VGPRs for SGPR spilling

Summary:
We were using reserved VGPRs for SGPR spilling and this was causing
some programs with a workgroup size of 1024 to use more than 64
registers, which is illegal.

Reviewers: arsenm, mareko, nhaehnle

Subscribers: nhaehnle, arsenm, llvm-commits, kzhuravl

Differential Revision: https://reviews.llvm.org/D22032

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@276980 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/SIInstrInfo.cpp
lib/Target/AMDGPU/SIMachineFunctionInfo.cpp
lib/Target/AMDGPU/SIRegisterInfo.cpp
lib/Target/AMDGPU/SIRegisterInfo.h