]> granicus.if.org Git - llvm/commit
[AArch64] Use 16 bytes as preferred function alignment on Cortex-A72.
authorFlorian Hahn <florian.hahn@arm.com>
Fri, 7 Jul 2017 10:15:49 +0000 (10:15 +0000)
committerFlorian Hahn <florian.hahn@arm.com>
Fri, 7 Jul 2017 10:15:49 +0000 (10:15 +0000)
commitd04ee305d853af4258fe45adebce116d10695c3c
tree72a952be73a4231177fc8e76d0f9ecb157b7adde
parent4a533c58e17b21ec7f83ac3913af861fd26e754e
[AArch64] Use 16 bytes as preferred function alignment on Cortex-A72.

Summary:
This change gives a 0.34% speed on execution time, a 0.61% improvement
in benchmark scores and a 0.57% increase in binary size on a Cortex-A72.
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-A72 recommends 16 byte
branch alignment.

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

Reviewed By: kristof.beyls

Subscribers: llvm-commits, aemerson

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

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