[llvm] [aarch64] XOR the frame pointer with the stack cookie when protecting the stack (PR #161114)
Pan Tao via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 26 19:19:53 PST 2025
================
@@ -2276,6 +2276,15 @@ bool AArch64InstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
.addMemOperand(*MI.memoperands_begin());
}
}
+ // To match MSVC
+ if (Subtarget.getTargetTriple().isOSMSVCRT() &&
+ !Subtarget.getTargetLowering()
----------------
PanTao2 wrote:
Thank you for pointing out the difference! I removed the isTargetMachO() check in AArch64TargetLowering::useStackGuardXorFP.
https://github.com/llvm/llvm-project/pull/161114
More information about the llvm-commits
mailing list