[lld-macho] Parallelize __LINKEDIT generation
authorJez Ng <jezng@fb.com>
Wed, 7 Apr 2021 23:55:45 +0000 (19:55 -0400)
committerJez Ng <jezng@fb.com>
Wed, 7 Apr 2021 23:55:52 +0000 (19:55 -0400)
commitd9065fe8ea643bd889821c0dc4c7dbec0469c28e
tree784e21531b790cba47fcd9ed48cd47db9eec20cb
parent37878de5036718481e13d5067a17d65eb85c3388
[lld-macho] Parallelize __LINKEDIT generation

Benchmarking chromium_framework on a 3.2 GHz 16-Core Intel Xeon W Mac Pro:

      N           Min           Max        Median           Avg        Stddev
  x  20          4.33          4.42          4.37          4.37   0.021026299
  +  20          4.12          4.23          4.18         4.175   0.035318103
  Difference at 95.0% confidence
    -0.195 +/- 0.0186025
    -4.46224% +/- 0.425686%
    (Student's t, pooled s = 0.0290644)

Reviewed By: #lld-macho, gkm

Differential Revision: https://reviews.llvm.org/D99998
lld/MachO/SyntheticSections.h
lld/MachO/Writer.cpp