This is an archive of the discontinued LLVM Phabricator instance.

[AArch64] Enable non-leaf frame pointer elimination.
ClosedPublic

Authored by gberry on Feb 29 2016, 1:09 PM.

Details

Summary

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.

Diff Detail

Repository
rL LLVM

Event Timeline

gberry updated this revision to Diff 49408.Feb 29 2016, 1:09 PM
gberry retitled this revision from to [AArch64] Enable non-leaf frame pointer elimination..
gberry updated this object.
gberry added a reviewer: t.p.northover.
gberry added subscribers: mcrosier, llvm-commits.
t.p.northover accepted this revision.Feb 29 2016, 2:13 PM
t.p.northover edited edge metadata.

This looks reasonable to me. In particular, it doesn't seem to affect Clang yet.

Cheers.

Tim.

This revision is now accepted and ready to land.Feb 29 2016, 2:13 PM
This revision was automatically updated to reflect the committed changes.