[PATCH] D23517: [ARM] Allow forcing frame pointers in leaf functions

Oliver Stannard via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 15 09:10:16 PDT 2016


olista01 created this revision.
olista01 added reviewers: rengolin, t.p.northover.
olista01 added a subscriber: llvm-commits.
olista01 set the repository for this revision to rL LLVM.
Herald added subscribers: samparker, rengolin, aemerson.

This allows the -fno-omit-frame-pointer option (and the
no-frame-pointer-elim function attribute) to work on leaf functions
(those which do not contain any calls).

This still does not emit frame pointers for leaf functions which do not
otherwise need a stack frame, due to the early return in emitPrologue.
This is OK, because a function without a stack frame cannot clobber the
previous value of the frame pointer, so the callee's frame pointer chain
will remain valid.

Repository:
  rL LLVM

https://reviews.llvm.org/D23517

Files:
  lib/Target/ARM/ARMFrameLowering.cpp
  test/CodeGen/Thumb2/frame-pointer.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D23517.68045.patch
Type: text/x-patch
Size: 3165 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160815/144ac468/attachment.bin>


More information about the llvm-commits mailing list