[all-commits] [llvm/llvm-project] d662f9: [AArch64] Mark X16 as clobbered in PAUTH_EPILOGUE ...
Victor Campos via All-commits
all-commits at lists.llvm.org
Tue Apr 7 02:22:12 PDT 2026
Branch: refs/heads/users/vhscampos/pauth-hint-pauthlr-clobber-x16
Home: https://github.com/llvm/llvm-project
Commit: d662f9f408f045263a27f68458ebfe17853b7b6a
https://github.com/llvm/llvm-project/commit/d662f9f408f045263a27f68458ebfe17853b7b6a
Author: Victor Campos <victor.campos at arm.com>
Date: 2026-04-07 (Tue, 07 Apr 2026)
Changed paths:
M llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
M llvm/lib/Target/AArch64/AArch64InstrInfo.h
M llvm/lib/Target/AArch64/AArch64InstrInfo.td
M llvm/lib/Target/AArch64/AArch64PrologueEpilogue.cpp
A llvm/test/CodeGen/AArch64/sign-return-address-pauthlr-slh.ll
Log Message:
-----------
[AArch64] Mark X16 as clobbered in PAUTH_EPILOGUE for hint-based PAuthLR
When users request branch protection with PAuthLR on targets that do not
support the PAuthLR instructions, the PAUTH_EPILOGUE falls back to using
hint-space instructions. This fallback sequence uses X16 as a temporary
register, but X16 was not listed in the clobber set.
Because Speculative Load Hardening uses X16, this omission made SLH
incompatible with this PAUTH_EPILOGUE path.
Mark X16 as clobbered so the compiler does not assume X16 is preserved across
the epilogue, restoring compatibility with Speculative Load Hardening and
avoiding incorrect register liveness assumptions. The clobber is added in C++
rather than TableGen, as X16 is only clobbered when PAuthLR is requested as a
branch protection variation and should not be treated as clobbered
unconditionally.
Commit: 33c23d5480d1de5370f1cb4fc64747e047dbbaf6
https://github.com/llvm/llvm-project/commit/33c23d5480d1de5370f1cb4fc64747e047dbbaf6
Author: Victor Campos <victor.campos at arm.com>
Date: 2026-04-07 (Tue, 07 Apr 2026)
Changed paths:
M llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
Log Message:
-----------
Remove assert
Commit: ded0088ff30d14d367929df77f986df6abdaa39e
https://github.com/llvm/llvm-project/commit/ded0088ff30d14d367929df77f986df6abdaa39e
Author: Victor Campos <victor.campos at arm.com>
Date: 2026-04-07 (Tue, 07 Apr 2026)
Changed paths:
M llvm/lib/Target/AArch64/AArch64InstrInfo.td
Log Message:
-----------
Improve a comment with better explanation
Compare: https://github.com/llvm/llvm-project/compare/9a43071b4658...ded0088ff30d
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list