[llvm] [PowerPC] Fix saving of Link Register when using ROP Protect (PR #123101)
Lei Huang via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 22 09:40:30 PST 2025
================
@@ -908,8 +908,10 @@ void PPCFrameLowering::emitPrologue(MachineFunction &MF,
// in ScratchReg.
// If the offset can not be encoded into the store instruction, we also have
// to save LR here.
+ // If we are using ROP Protection we need to save the LR here as we cannot
+ // move the hasst instruction past the point where we get the stack frame.
----------------
lei137 wrote:
nit:
```suggestion
// move the hashst instruction past the point where we get the stack frame.
```
https://github.com/llvm/llvm-project/pull/123101
More information about the llvm-commits
mailing list