[llvm] [aarch64] XOR the frame pointer with the stack cookie when protecting the stack (PR #161114)
Eli Friedman via llvm-commits
llvm-commits at lists.llvm.org
Fri Oct 10 13:07:37 PDT 2025
================
@@ -28965,7 +28965,25 @@ void AArch64TargetLowering::ReplaceNodeResults(
bool AArch64TargetLowering::useLoadStackGuardNode(const Module &M) const {
----------------
efriedma-quic wrote:
I'd prefer not to disable useLoadStackGuardNode; it provides additional protection because it prevents later optimizations from incorrectly hoisting the address computations.
You can add the EOR instruction in AArch64InstrInfo::expandPostRAPseudo.
https://github.com/llvm/llvm-project/pull/161114
More information about the llvm-commits
mailing list