Skip to content

Commit 5076be4

Browse files
committed
Add more comment
1 parent 36782f4 commit 5076be4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

llvm/lib/Target/AArch64/AArch64InstrInfo.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2497,7 +2497,9 @@ bool AArch64InstrInfo::expandPostRAPseudo(MachineInstr &MI) const {
24972497
.addMemOperand(*MI.memoperands_begin());
24982498
}
24992499
}
2500-
// To match MSVC
2500+
// To match MSVC. Unlike x86_64 which uses xor instruction to mix the cookie,
2501+
// we use sub instruction to mix the cookie on aarch64 for keeping the
2502+
// existing inlining logic intact.
25012503
if (Subtarget.getTargetTriple().isOSMSVCRT() &&
25022504
!Subtarget.getTargetLowering()
25032505
->getTargetMachine()

0 commit comments

Comments
 (0)