[llvm] [AArch64] Emit async PAuth epilogue CFI for outlined functions (PR #189924)
Gergely Bálint via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 10 22:44:52 PDT 2026
================
@@ -143,7 +143,9 @@ void AArch64PointerAuthImpl::authenticateLR(
MachineFunction &MF, MachineBasicBlock::iterator MBBI) const {
const AArch64FunctionInfo *MFnI = MF.getInfo<AArch64FunctionInfo>();
bool UseBKey = MFnI->shouldSignWithBKey();
- bool EmitAsyncCFI = MFnI->needsAsyncDwarfUnwindInfo(MF);
+ bool EmitAsyncCFI = MFnI->needsAsyncDwarfUnwindInfo(MF) ||
----------------
bgergely0 wrote:
> At the point, it's pointless knowing
if the random bits we interpret as return address are "signed" or "not signed".
> That is to say, the .cfi_negate_ra_state makes sense only if the rest of the
epilogue CFI instructions are present.
Agreed. Although it's not clear why LLVM chooses to have no CFIs at that point, but then the fix is probably a different scope than what this pr aims to do.
https://github.com/llvm/llvm-project/pull/189924
More information about the llvm-commits
mailing list