[PATCH] D78717: [SystemZ] Implement -fstack-clash-protection
serge via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 3 03:48:18 PDT 2020
serge-sans-paille added inline comments.
================
Comment at: llvm/lib/Target/SystemZ/SystemZFrameLowering.cpp:619
+
+ MachineInstr *StackAllocMI = nullptr;
+ for (MachineInstr &MI : PrologMBB)
----------------
could be:
```
auto Where = llvm::find_if(PrologMBB, [](MachineInstr& MI) { return MI.getOpcode() == SystemZ::STACKALLOC_W_PROBING;});
if(Where = PrologMBB.end()) return;
MachineInstr &StackAllocMI = *Where;
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D78717/new/
https://reviews.llvm.org/D78717
More information about the llvm-commits
mailing list