[PATCH] D101636: [AArch64] Sets the preferred function alignment for Cortex-A53/A55
Stelios Ioannou via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Apr 30 07:57:54 PDT 2021
stelios-arm created this revision.
stelios-arm added reviewers: dmgreen, SjoerdMeijer, sanwou01, NickGuy, fhahn.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
stelios-arm requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Setting the preferred function alignment to `16` for Cortex A53/A55 improves performance in a wide range of benchmarks. This brings it in line with the
Cortex-A53/A55 tuning that is used in GCC `(gcc/config/aarch64/aarch64.c)`.
https://reviews.llvm.org/D101636
Files:
llvm/lib/Target/AArch64/AArch64Subtarget.cpp
Index: llvm/lib/Target/AArch64/AArch64Subtarget.cpp
===================================================================
--- llvm/lib/Target/AArch64/AArch64Subtarget.cpp
+++ llvm/lib/Target/AArch64/AArch64Subtarget.cpp
@@ -89,9 +89,8 @@
case CortexA35:
break;
case CortexA53:
- PrefFunctionLogAlignment = 3;
- break;
case CortexA55:
+ PrefFunctionLogAlignment = 4;
break;
case CortexA57:
MaxInterleaveFactor = 4;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D101636.341907.patch
Type: text/x-patch
Size: 448 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210430/494acb18/attachment.bin>
More information about the llvm-commits
mailing list