[PATCH] D156716: [AArch64][PAC] Check authenticated LR value during tail call

Anatoly Trosinenko via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Sep 26 05:37:49 PDT 2023


atrosinenko updated this revision to Diff 557353.
atrosinenko added a comment.

Rebased and updated the patch a bit more:

- in `getOutliningCandidateInfo`, adjusted `SequenceSize` variable before its first use
- updated code comments
- skipped checking LR if Scadow Call Stack is enabled: the LR value just before TCRETURN* instruction is anyway not the one produced by AUT* (and we cannot check right after AUT* because we cannot be sure which register is usable as a temporary)


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D156716/new/

https://reviews.llvm.org/D156716

Files:
  llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
  llvm/lib/Target/AArch64/AArch64InstrInfo.h
  llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.cpp
  llvm/lib/Target/AArch64/AArch64MachineFunctionInfo.h
  llvm/lib/Target/AArch64/AArch64PointerAuth.cpp
  llvm/lib/Target/AArch64/AArch64PointerAuth.h
  llvm/lib/Target/AArch64/AArch64Subtarget.cpp
  llvm/lib/Target/AArch64/AArch64Subtarget.h
  llvm/test/CodeGen/AArch64/sign-return-address-tailcall.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D156716.557353.patch
Type: text/x-patch
Size: 29791 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230926/a2ad3974/attachment.bin>


More information about the llvm-commits mailing list