[all-commits] [llvm/llvm-project] 0d55d0: [ELF] Parallelize ICF's section sort. NFC (#223216)

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Sep 12 23:58:34 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0d55d0bf81ce2e0d6d3c46b7835efb788bde634a
      https://github.com/llvm/llvm-project/commit/0d55d0bf81ce2e0d6d3c46b7835efb788bde634a
  Author: Fangrui Song <i at maskray.me>
  Date:   2026-09-13 (Sun, 13 Sep 2026)

  Changed paths:
    M lld/ELF/ICF.cpp

  Log Message:
  -----------
  [ELF] Parallelize ICF's section sort. NFC (#223216)

All candidate sections are sorted by a serial stable_sort, which is a
scalability bottleneck. Switch to parallel sort using Schwartzian
transform. Linking Chromium with --icf=all (--threads=8) drops from
4.47s to 3.18s.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list