[all-commits] [llvm/llvm-project] b6b492: [BOLT][RISCV] Set minimum function alignment to 2 ...
Job Noorman via All-commits
all-commits at lists.llvm.org
Mon Oct 23 01:09:24 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: b6b492880f5ac6357d85ba2f3ad8e41fded1d97c
https://github.com/llvm/llvm-project/commit/b6b492880f5ac6357d85ba2f3ad8e41fded1d97c
Author: Job Noorman <jnoorman at igalia.com>
Date: 2023-10-23 (Mon, 23 Oct 2023)
Changed paths:
M bolt/include/bolt/Core/BinaryFunction.h
M bolt/include/bolt/Core/MCPlusBuilder.h
M bolt/lib/Target/AArch64/AArch64MCPlusBuilder.cpp
M bolt/lib/Target/RISCV/RISCVMCPlusBuilder.cpp
A bolt/test/RISCV/function-alignment.s
Log Message:
-----------
[BOLT][RISCV] Set minimum function alignment to 2 for RVC (#69837)
In #67707, the minimum function alignment on RISC-V was set to 4. When
RVC (compressed instructions) is enabled, the minimum alignment can be
reduced to 2.
This patch implements this by delegating the choice of minimum alignment
to a new `MCPlusBuilder::getMinFunctionAlignment` function. This way,
the target-dependent code in `BinaryFunction` is minimized.
More information about the All-commits
mailing list