[PATCH] D120922: [AMDGPU] Ensure return address is save/restored if clobbered or when function has calls

Venkata Ramanaiah Nalamothu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 3 10:47:34 PST 2022


RamNalamothu created this revision.
RamNalamothu added reviewers: arsenm, scott.linder, t-tye, kzhuravl.
Herald added subscribers: kerbowa, tpr, dstuttard, yaxunl, jvesely.
Herald added a project: All.
RamNalamothu requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

This test is to make sure the return address registers, if clobbered in the
function or when the function has calls, are save/restored irrespective of
whether the IPRA is enabled/disabled.

This test is found to be not save/restore the return address registers, when
clobbered in the function, with the corresponding downstream changes of D114652 <https://reviews.llvm.org/D114652>.

The test could not be reduced further as the register allocator needs enough
register pressure so that it allocates the return address registers as well.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D120922

Files:
  llvm/test/CodeGen/AMDGPU/ipra-return-address-save-restore.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D120922.412769.patch
Type: text/x-patch
Size: 11219 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220303/879dcb0e/attachment.bin>


More information about the llvm-commits mailing list