OSDN Git Service

AMDGPU/SI: Don't reserve FLAT_SCR on non-HSA targets & without stack objects
authorMarek Olsak <marek.olsak@amd.com>
Fri, 9 Dec 2016 19:49:48 +0000 (19:49 +0000)
committerMarek Olsak <marek.olsak@amd.com>
Fri, 9 Dec 2016 19:49:48 +0000 (19:49 +0000)
commit36d5f19e1d12d8f98bd3f36c585cebb56c54fa1f
tree1d3e51f2b23f9126ab30158695b655055a023f16
parentee082f5e522e44330e36c65b60f0e316eff77784
AMDGPU/SI: Don't reserve FLAT_SCR on non-HSA targets & without stack objects

Summary: This frees 2 scalar registers.

Reviewers: tstellarAMD

Subscribers: qcolombet, arsenm, kzhuravl, wdng, nhaehnle, yaxunl, tony-tye

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@289261 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
lib/Target/AMDGPU/SIRegisterInfo.cpp
lib/Target/AMDGPU/SIRegisterInfo.h
test/CodeGen/AMDGPU/attr-amdgpu-flat-work-group-size.ll
test/CodeGen/AMDGPU/attr-amdgpu-num-sgpr.ll
test/CodeGen/AMDGPU/attr-amdgpu-waves-per-eu.ll
test/CodeGen/AMDGPU/exceed-max-sgprs.ll
test/CodeGen/AMDGPU/flat-scratch-reg.ll
test/CodeGen/AMDGPU/spill-m0.ll