[PATCH] D25589: AMDGPU: Fix using incorrect private resource with no allocation
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 13 19:20:07 PDT 2016
arsenm created this revision.
arsenm added a subscriber: llvm-commits.
Herald added subscribers: tony-tye, yaxunl, nhaehnle, wdng, kzhuravl, qcolombet.
Herald added a reviewer: tstellarAMD.
It's possible to have a use of the private resource descriptor or
scratch wave offset registers even though there are no allocated
stack objects. This would result in continuing to use the maximum
number reserved registers. This could go over the number of SGPRs
available on VI, or violate the SGPR limit requested by
the function attributes.
https://reviews.llvm.org/D25589
Files:
lib/Target/AMDGPU/AMDGPUAsmPrinter.cpp
lib/Target/AMDGPU/SIFrameLowering.cpp
lib/Target/AMDGPU/SIInstrInfo.cpp
lib/Target/AMDGPU/SIRegisterInfo.cpp
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/flat-scratch-reg.ll
test/CodeGen/AMDGPU/private-access-no-objects.ll
test/CodeGen/AMDGPU/si-sgpr-spill.ll
test/CodeGen/AMDGPU/spill-alloc-sgpr-init-bug.ll
test/CodeGen/AMDGPU/spill-m0.ll
test/CodeGen/AMDGPU/wqm.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D25589.74610.patch
Type: text/x-patch
Size: 26306 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161014/e2876594/attachment.bin>
More information about the llvm-commits
mailing list