summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorFlorian Hahn <florian.hahn@arm.com>2017-07-29 20:04:54 +0000
committerFlorian Hahn <florian.hahn@arm.com>2017-07-29 20:04:54 +0000
commit2f86e3d4948853f7b753e7ae4b9c9eac8f6e264f (patch)
treea3e4373199cb25b5a2fb5409c9574d2bb9fe296f /llvm/lib/Target
parent29199f5260abef2f4916196a29cc99b00e39ded2 (diff)
downloadbcm5719-llvm-2f86e3d4948853f7b753e7ae4b9c9eac8f6e264f.tar.gz
bcm5719-llvm-2f86e3d4948853f7b753e7ae4b9c9eac8f6e264f.zip
[AArch64] Use 8 bytes as preferred function alignment on Cortex-A53.
Summary: This change gives a 0.25% speedup on execution time, a 0.82% improvement in benchmark scores and a 0.20% increase in binary size on a Cortex-A53. These numbers are the geomean results on a wide range of benchmarks from the test-suite and a range of proprietary suites. Reviewers: t.p.northover, aadg, silviu.baranga, mcrosier, rengolin Reviewed By: rengolin Subscribers: grimar, davide, aemerson, rengolin, javed.absar, kristof.beyls, llvm-commits Differential Revision: https://reviews.llvm.org/D35568 llvm-svn: 309494
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/AArch64/AArch64Subtarget.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Target/AArch64/AArch64Subtarget.cpp b/llvm/lib/Target/AArch64/AArch64Subtarget.cpp
index ea611245273..4880ff6f9e7 100644
--- a/llvm/lib/Target/AArch64/AArch64Subtarget.cpp
+++ b/llvm/lib/Target/AArch64/AArch64Subtarget.cpp
@@ -130,7 +130,9 @@ void AArch64Subtarget::initializeProperties() {
MinVectorRegisterBitWidth = 128;
break;
case CortexA35: break;
- case CortexA53: break;
+ case CortexA53:
+ PrefFunctionAlignment = 3;
+ break;
case CortexA72:
PrefFunctionAlignment = 4;
break;
OpenPOWER on IntegriCloud