[PATCH] D156413: [AMDGPU][PEI] Set up SP for chain functions

Diana Picus via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 27 03:14:41 PDT 2023


rovka created this revision.
Herald added subscribers: foad, kerbowa, hiraditya, tpr, dstuttard, yaxunl, jvesely, kzhuravl, arsenm.
Herald added a project: All.
rovka requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

Initialize the SP to 0 in the prologue of functions with the
`amdgpu_cs_chain` or `amdgpu_cs_chain_preserve` calling conventions, but
only if they need one (i.e. if they contain calls to `amdgpu_gfx`
functions or if they have stack objects).


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D156413

Files:
  llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
  llvm/test/CodeGen/AMDGPU/amdgpu-cs-chain-cc.ll
  llvm/test/CodeGen/AMDGPU/amdgpu-cs-chain-preserve-cc.ll
  llvm/test/CodeGen/AMDGPU/pei-amdgpu-cs-chain-preserve.mir
  llvm/test/CodeGen/AMDGPU/pei-amdgpu-cs-chain.mir

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156413.544682.patch
Type: text/x-patch
Size: 16265 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230727/14f2ed28/attachment.bin>


More information about the llvm-commits mailing list