[lld] [lld][ELF] filter out section-type symbols when use BP reorder (PR #151685)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 6 17:53:39 PDT 2025
================
@@ -76,10 +76,12 @@ DenseMap<const InputSectionBase *, int> elf::runBalancedPartitioning(
if (!d)
return;
auto *sec = dyn_cast_or_null<InputSection>(d->section);
+
// Skip empty, discarded, ICF folded sections, .bss. Skipping ICF folded
// sections reduces duplicate detection work in BPSectionOrderer.
----------------
MaskRay wrote:
Add comment: `Skip section symbols.`
https://github.com/llvm/llvm-project/pull/151685
More information about the llvm-commits
mailing list