[PATCH] D71168: [AArch64] Save FP for leaf functions when disabling frame pointer elimination

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 7 11:11:18 PST 2019


MaskRay created this revision.
Herald added subscribers: llvm-commits, jfb, atanasyan, hiraditya, kristof.beyls, arichardson, sdardis.
Herald added a project: LLVM.
MaskRay added a parent revision: D71167: [Driver] Default to -momit-leaf-frame-pointer for AArch64.

The change allows clang -mno-omit-leaf-frame-pointer to disable frame
pointer elimination. This behavior matches X86 and Mips, and also GCC
AArch64.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D71168

Files:
  llvm/lib/Target/AArch64/AArch64FrameLowering.cpp
  llvm/test/CodeGen/AArch64/GlobalISel/tail-call-no-save-fp-lr.ll
  llvm/test/CodeGen/AArch64/arm64-large-frame.ll
  llvm/test/CodeGen/AArch64/arm64-shrink-wrapping.ll
  llvm/test/CodeGen/AArch64/arm64_32.ll
  llvm/test/CodeGen/AArch64/f16-instructions.ll
  llvm/test/CodeGen/AArch64/fastcc.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D71168.232715.patch
Type: text/x-patch
Size: 7408 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191207/99a916eb/attachment.bin>


More information about the llvm-commits mailing list