[PATCH] D75092: [AMDGPU][NFC] Refactor emitEntryFunctionPrologue

Scott Linder via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 24 16:45:38 PST 2020


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

Remove dead code and factor repeated conditions out into a single check.
Rename and move code to make it more obvious what is running only for
entry functions. Simplify function arguments to make it clearer what the
relevant inputs are. Make flat scratch init accept an MBB iterator and
move it to where it was logically being emitted within the prologue.

These changes will make a future update to the calling convention
simpler.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D75092

Files:
  llvm/lib/Target/AMDGPU/SIFrameLowering.cpp
  llvm/lib/Target/AMDGPU/SIFrameLowering.h

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D75092.246343.patch
Type: text/x-patch
Size: 18438 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200225/79b756d5/attachment.bin>


More information about the llvm-commits mailing list