[lld] [LLD][ELF] Fix performance regression when using linker scripts (PR #194668)
Daniel Thornburgh via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 28 10:01:47 PDT 2026
================
@@ -558,14 +558,17 @@ LinkerScript::computeInputSections(const InputSectionDescription *cmd,
ctx.arg.sortSection, SortSectionPolicy::None);
};
+ bool contiguousRegions = !ctx.arg.enableNonContiguousRegions;
----------------
mysterymath wrote:
Breaking this out feels less succinct/clear than leaving this expression inline. Just guessing, but was this hoisting done for performance because of a missed compiler optimization?
https://github.com/llvm/llvm-project/pull/194668
More information about the llvm-commits
mailing list