[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:46 PDT 2026
================
@@ -558,14 +558,17 @@ LinkerScript::computeInputSections(const InputSectionDescription *cmd,
ctx.arg.sortSection, SortSectionPolicy::None);
};
+ bool contiguousRegions = !ctx.arg.enableNonContiguousRegions;
for (const SectionPattern &pat : cmd->sectionPatterns) {
size_t sizeBeforeCurrPat = ret.size();
for (size_t i = 0, e = sections.size(); i != e; ++i) {
- // Skip if the section is dead or has been matched by a previous pattern
- // in this input section description.
+ // Skip if the section is dead or has been matched by a previous input
----------------
mysterymath wrote:
This needs some additional punctuation now. "dead, has been matched..., or has been matched"
https://github.com/llvm/llvm-project/pull/194668
More information about the llvm-commits
mailing list