[all-commits] [llvm/llvm-project] 44978a: [lld/mac] Write output sections in parallel

Michael Eisel via All-commits all-commits at lists.llvm.org
Wed Jun 8 17:12:10 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 44978a234b8e2ad5f112d6b5910ee129bd52d54b
      https://github.com/llvm/llvm-project/commit/44978a234b8e2ad5f112d6b5910ee129bd52d54b
  Author: Michael Eisel <michael.eisel at gmail.com>
  Date:   2022-06-08 (Wed, 08 Jun 2022)

  Changed paths:
    M lld/MachO/Writer.cpp
    M lld/test/MachO/invalid/range-check.s

  Log Message:
  -----------
  [lld/mac] Write output sections in parallel

This reduces linking time by ~8% for my project (1.19s -> 0.53s for
writeSections()). writeTo is const, which bodes well for it being
parallelizable, and I've looked through the different overridden versions and
can't see any race conditions. It produces the same byte-for-byte output for my
project.

Differential Revision: https://reviews.llvm.org/D126800




More information about the All-commits mailing list