[lld] [ELF] Add BPSectionOrderer options (#120514) (PR #125559)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 3 11:18:02 PST 2025
================
@@ -98,10 +102,11 @@ static SmallVector<std::pair<unsigned, UtilityNodes>> getUnsForCompression(
// Merge sections that are nearly identical
SmallVector<std::pair<unsigned, SmallVector<uint64_t>>> newSectionHashes;
DenseMap<uint64_t, unsigned> wholeHashToSectionIdx;
+ unsigned threshold = sectionHashes.size() > 10000 ? 5 : 0;
----------------
MaskRay wrote:
@ellishg With the existing threshold 5, wholeHash is almost always 0 for smaller applications. I guess 5 was picked to improve the performance of larger applications.
https://github.com/llvm/llvm-project/pull/125559
More information about the llvm-commits
mailing list