[PATCH] D17730: [AArch64] Enable non-leaf frame pointer elimination.

Geoff Berry via llvm-commits llvm-commits at lists.llvm.org
Mon Feb 29 13:09:26 PST 2016


gberry created this revision.
gberry added a reviewer: t.p.northover.
gberry added subscribers: mcrosier, llvm-commits.
Herald added subscribers: srhines, danalbert, qcolombet, tberghammer, rengolin, aemerson.

This change enables frame pointer elimination in non-leaf functions.
The -fomit-frame-pointer option still needs to be used when compiling
via clang (or an equivalent method of not setting the
'no-frame-pointer-elim*' function attributes if generating llvm IR via
some other method) to take advantage of this optimization.

This change should be NFC when compiling via clang without
-fomit-frame-pointer.

http://reviews.llvm.org/D17730

Files:
  lib/Target/AArch64/AArch64FrameLowering.cpp
  lib/Target/AArch64/AArch64RegisterInfo.cpp
  test/CodeGen/AArch64/aarch64-deferred-spilling.ll
  test/CodeGen/AArch64/aarch64-dynamic-stack-layout.ll
  test/CodeGen/AArch64/arm64-abi_align.ll
  test/CodeGen/AArch64/arm64-fast-isel-alloca.ll
  test/CodeGen/AArch64/arm64-fast-isel-call.ll
  test/CodeGen/AArch64/arm64-hello.ll
  test/CodeGen/AArch64/arm64-shrink-wrapping.ll
  test/CodeGen/AArch64/emutls.ll
  test/CodeGen/AArch64/f16-instructions.ll
  test/CodeGen/AArch64/fastcc.ll
  test/CodeGen/AArch64/local_vars.ll
  test/CodeGen/AArch64/machine-combiner.ll
  test/CodeGen/AArch64/regress-tblgen-chains.ll
  test/CodeGen/AArch64/stack-guard-remat-bitcast.ll
  test/DebugInfo/AArch64/frameindices.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D17730.49408.patch
Type: text/x-patch
Size: 15822 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160229/c6dbdb44/attachment.bin>


More information about the llvm-commits mailing list