[PATCH] D38528: Parallelize tail-merge string table construction.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 3 21:24:47 PDT 2017


ruiu created this revision.
Herald added a subscriber: emaste.

This patch parallelize MergeTailSection just like as I did to
MergeNoTailSection in r314588.

On my 2-socket 20-core 40-threads Xeon E5-2680 @ 2.8 GHz machine,
this patch shorten the clang debug build link time with -O2 from
11.35s to 5.72s. Without -O2, it's 5.23s, so the overhead of -O2 is
now about a half second in this test environment.


https://reviews.llvm.org/D38528

Files:
  lld/ELF/InputSection.h
  lld/ELF/SyntheticSections.cpp
  lld/ELF/SyntheticSections.h
  lld/test/ELF/merge-shared-str.s
  lld/test/ELF/merge-string.s
  lld/test/ELF/tail-merge-string-align.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D38528.117622.patch
Type: text/x-patch
Size: 13967 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171004/06fffea2/attachment.bin>


More information about the llvm-commits mailing list