[PATCH] D157514: [ARM] Set preferred function alignment
Nicholas Guy via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 9 08:08:45 PDT 2023
NickGuy created this revision.
NickGuy added reviewers: dmgreen, samtebbs.
NickGuy added a project: LLVM.
Herald added subscribers: hiraditya, kristof.beyls.
Herald added a project: All.
NickGuy requested review of this revision.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D157514
Files:
llvm/lib/Target/ARM/ARMISelLowering.cpp
Index: llvm/lib/Target/ARM/ARMISelLowering.cpp
===================================================================
--- llvm/lib/Target/ARM/ARMISelLowering.cpp
+++ llvm/lib/Target/ARM/ARMISelLowering.cpp
@@ -1612,6 +1612,7 @@
PredictableSelectIsExpensive = Subtarget->getSchedModel().isOutOfOrder();
setPrefLoopAlignment(Align(1ULL << Subtarget->getPrefLoopLogAlignment()));
+ setPrefFunctionAlignment(Align(4));
setMinFunctionAlignment(Subtarget->isThumb() ? Align(2) : Align(4));
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157514.548629.patch
Type: text/x-patch
Size: 497 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230809/2fa06990/attachment.bin>
More information about the llvm-commits
mailing list