[llvm] [AArch64] Emit async PAuth epilogue CFI for outlined functions (PR #189924)

Momchil Velikov via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 07:58:14 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) ||
----------------
momchil-velikov wrote:

The decision whether to emit async unwind info should be contained in one function (`needsAsyncDwarfUnwiondInfo`). 

What guarantees that decision to emit or not emit async unwind info here is consistent with the decisions taken on all other places where `needsAsyncDwarfUNwindInfo` is called ?

https://github.com/llvm/llvm-project/pull/189924


More information about the llvm-commits mailing list