[PATCH] D107301: [AArch64] Save LR (x30) across statepoint calls

Johann Rudloff via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 2 11:10:12 PDT 2021


cypheon created this revision.
cypheon added reviewers: reames, t.p.northover.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
cypheon requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

On AArch64, the statepoint instruction clobbers LR (x30) because it eventually gets tunred into a BL instruction.
This is an attempt to correctly mark the register as clobbered while being less invasive than the previous approach (https://reviews.llvm.org/D74902).
The related test is also updated to verify that LR (x30) is correctly saved and restored across statepoint calls.

Related bug: https://bugs.llvm.org/show_bug.cgi?id=50553


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D107301

Files:
  llvm/include/llvm/CodeGen/StackMaps.h
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/statepoint-call-lowering.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D107301.363529.patch
Type: text/x-patch
Size: 7567 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210802/dda410fc/attachment.bin>


More information about the llvm-commits mailing list