[PATCH] D68990: Add option `-aarch64-stack-clear` which enables stack clearing on function exit

Anton Afanasyev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 15 07:49:44 PDT 2019


anton-afanasyev created this revision.
Herald added subscribers: llvm-commits, hiraditya, kristof.beyls.
Herald added a project: LLVM.

This patch modifies `emitEpilog()` for AArch64, breaking `MachineBasicBlock`s from `RestoreBlocks` to two `MBB`s and adding stack clearing code before frame destroying.


https://reviews.llvm.org/D68990

Files:
  llvm/lib/Target/AArch64/AArch64FrameLowering.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D68990.225036.patch
Type: text/x-patch
Size: 7916 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191015/065b3e7a/attachment.bin>


More information about the llvm-commits mailing list