[llvm] [AArch64] Fix return address auth in tail call epilogues (PR #189484)
Jon Roelofs via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 2 16:53:30 PDT 2026
================
----------------
jroelofs wrote:
```suggestion
if (Subtarget->hasPAuthLR()) {
unsigned AutOpc = UseBKey ? AArch64::AUTIB171615 : AArch64::AUTIA171615;
BuildMI(MBB, MBBI, DL, TII->get(AutOpc))
.setMIFlag(MachineInstr::FrameDestroy);
} else {
BuildMI(MBB, MBBI, DL, TII->get(AArch64::PACM))
.setMIFlag(MachineInstr::FrameDestroy);
unsigned AutOpc = UseBKey ? AArch64::AUTIB1716 : AArch64::AUTIA1716;
BuildMI(MBB, MBBI, DL, TII->get(AutOpc))
.setMIFlag(MachineInstr::FrameDestroy);
}
```
https://github.com/llvm/llvm-project/pull/189484
More information about the llvm-commits
mailing list