[PATCH] D79610: [AMDGPU] Allow spilling FP to memory

Austin Kerbow via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 7 17:24:03 PDT 2020


kerbowa created this revision.
kerbowa added reviewers: arsenm, saiislam, cdevadas, rampitec.
Herald added subscribers: llvm-commits, hiraditya, t-tye, tpr, dstuttard, yaxunl, nhaehnle, wdng, jvesely, kzhuravl.
Herald added a project: LLVM.

If there are no available lanes in a reserved VGPR, no free SGPR, and no unused CSR
VGPR when trying to save the FP it needs to be spilled to memory as a last
resort. This can be done in the prolog/epilog if we manually add the spill
and manage exec.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D79610

Files:
  llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
  llvm/lib/Target/AMDGPU/SIMachineFunctionInfo.h
  llvm/test/CodeGen/AMDGPU/callee-frame-setup.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D79610.262789.patch
Type: text/x-patch
Size: 21744 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200508/b1af5154/attachment.bin>


More information about the llvm-commits mailing list