]> granicus.if.org Git - llvm/commit
[AArch64] Use 16 bytes as preferred function alignment on Cortex-A57.
authorFlorian Hahn <florian.hahn@arm.com>
Fri, 7 Jul 2017 10:43:01 +0000 (10:43 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Fri, 7 Jul 2017 10:43:01 +0000 (10:43 +0000)
commit287aa279ce5f8ede095a9d423c1271cd769625be
tree21f6621540ad32498ad14af89f9668a3d47c31c8
parent9889fe2290766430b99a2d4fadbc5ba92f8004b6
[AArch64] Use 16 bytes as preferred function alignment on Cortex-A57.

Summary:
This change gives a 0.89% speed on execution time, a 0.94% improvement
in benchmark scores and a 0.62% increase in binary size on a Cortex-A57.
These numbers are the geomean results on a wide range of benchmarks from
the test-suite, SPEC2000, SPEC2006 and a range of proprietary suites.

The software optimization guide for the Cortex-A57 recommends 16 byte
branch alignment.

Reviewers: t.p.northover, mcrosier, javed.absar, kristof.beyls, sbaranga

Reviewed By: kristof.beyls

Subscribers: aemerson, rengolin, llvm-commits

Differential Revision: https://reviews.llvm.org/D34954

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@307389 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64Subtarget.cpp
test/CodeGen/AArch64/preferred-function-alignment.ll