[llvm] [BOLT] Simple hugify fixes and refactoring (PR #202609)
Alexey Moksyakov via llvm-commits
llvm-commits at lists.llvm.org
Sun Jun 21 21:02:29 PDT 2026
================
@@ -158,7 +158,16 @@ BinaryContext::BinaryContext(std::unique_ptr<MCContext> Ctx,
MIA(std::move(MIA)), MIB(std::move(MIB)), MRI(std::move(MRI)),
DisAsm(std::move(DisAsm)), Logger(Logger), InitialDynoStats(isAArch64()) {
RegularPageSize = isAArch64() ? RegularPageSizeAArch64 : RegularPageSizeX86;
- PageAlign = opts::NoHugePages ? RegularPageSize : HugePageSize;
+ if (opts::Hugify) {
+ PageAlign = HugePageSize;
+ if (opts::NoHugePages) {
----------------
yavtuk wrote:
You know what I think about this option 😁
https://github.com/llvm/llvm-project/pull/202609
More information about the llvm-commits
mailing list