[AMDGPU] Ensure there are enough registers for wave dispatch
authorTim Renouf <tpr.llvm@botech.co.uk>
Wed, 11 Apr 2018 17:18:36 +0000 (17:18 +0000)
committerTim Renouf <tpr.llvm@botech.co.uk>
Wed, 11 Apr 2018 17:18:36 +0000 (17:18 +0000)
commitfd8d4af3bcd1b51c79e195a06c913d7d61198e8b
tree1a48f7225da4d9f5e44885adfc33914c679e0021
parent7bbacbf4ca4a9ea1ca1c818e8005daa9b353c41f
[AMDGPU] Ensure there are enough registers for wave dispatch

Summary:
This fixes the number of SGPRs and VGPRs in the *_RSRC1 register to
allow for registers set up in wave dispatch, even if those registers are
not used in the shader.

Re-landed after noticing that the buildbot failure from 329808 seemed to
be unrelated.

Subscribers: arsenm, kzhuravl, wdng, nhaehnle, yaxunl, dstuttard, t-tye, llvm-commits

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

Change-Id: I6575f0e0d2a528d1319d0b289f0ebe4510fa5771
llvm-svn: 329826
llvm/lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
llvm/test/CodeGen/AMDGPU/wave_dispatch_regs.ll [new file with mode: 0644]