[all-commits] [llvm/llvm-project] b7944f: [BOLT] Return proper minimal alignment from BF (#6...
Vladislav Khmelevsky via All-commits
all-commits at lists.llvm.org
Wed Oct 11 22:33:21 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b7944f7c042925adef4e4a5ed587d7ffca8e3168
https://github.com/llvm/llvm-project/commit/b7944f7c042925adef4e4a5ed587d7ffca8e3168
Author: Vladislav Khmelevsky <och95 at yandex.ru>
Date: 2023-10-12 (Thu, 12 Oct 2023)
Changed paths:
M bolt/include/bolt/Core/BinaryFunction.h
M bolt/lib/Core/BinaryEmitter.cpp
M bolt/lib/Core/BinaryFunction.cpp
M bolt/lib/Passes/Aligner.cpp
M bolt/lib/Passes/LongJmp.cpp
A bolt/test/AArch64/bf_min_alignment.s
Log Message:
-----------
[BOLT] Return proper minimal alignment from BF (#67707)
Currently minimal alignment of function is hardcoded to 2 bytes.
Add 2 more cases:
1. In case BF is data in code return the alignment of CI as minimal
alignment
2. For aarch64 and riscv platforms return the minimal value of 4 (added
test for aarch64)
Otherwise fallback to returning the 2 as it previously was.
More information about the All-commits
mailing list