1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-23 04:52:54 +02:00
llvm-mirror/test/tools
Vedant Kumar 78dfceef4b Retry: [llvm-profdata] Speed up merging by using a thread pool
Add a "-j" option to llvm-profdata to control the number of threads used.
Auto-detect NumThreads when it isn't specified, and avoid spawning threads when
they wouldn't be beneficial.

I tested this patch using a raw profile produced by clang (147MB). Here is the
time taken to merge 4 copies together on my laptop:

  No thread pool: 112.87s user 5.92s system 97% cpu 2:01.08 total
  With 2 threads: 134.99s user 26.54s system 164% cpu 1:33.31 total

Changes since the initial commit:

  - When handling odd-length inputs, call ThreadPool::wait() before merging the
    last profile. Should fix a race/off-by-one (see r275937).

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

llvm-svn: 275938
2016-07-19 01:17:20 +00:00
..
dsymutil dsymutil/modules: Reword the warning for static libraries without module caches 2016-05-20 20:36:06 +00:00
gold [ThinLTO/gold] Perform index-based weak/linkonce resolution 2016-07-14 21:13:24 +00:00
llvm-ar test: relax the match on the timestamp 2016-07-05 01:14:53 +00:00
llvm-config
llvm-cov [llvm-cov] Place anchors around line numbers in html reports 2016-07-18 17:53:16 +00:00
llvm-cxxdump
llvm-dwp llvm-dwp: More error handling around invalid compressed sections 2016-05-23 17:59:17 +00:00
llvm-lit
llvm-lto [ThinLTO] Use valueid instead of bitcode offsets in combined index file 2016-04-27 13:28:35 +00:00
llvm-mc
llvm-nm
llvm-objdump llvm-objdump: extend __mh_execute_header handling to other special syms 2016-07-14 23:13:03 +00:00
llvm-pdbdump Update llvm-pdbdump to use subcommands. 2016-06-30 17:42:48 +00:00
llvm-profdata Retry: [llvm-profdata] Speed up merging by using a thread pool 2016-07-19 01:17:20 +00:00
llvm-readobj [lanai] Update ELF number to correspond to the assigned number. 2016-06-28 18:22:22 +00:00
llvm-size Fix llvm-size to exit with non zero when it can’t open a file. 2016-05-02 21:41:03 +00:00
llvm-split
llvm-symbolizer [Symbolize] Check if the PE file has a PDB and emit an error if we can't load it 2016-06-03 20:25:09 +00:00
lto LTOCodeGenerator: add linkonce(_odr) to "llvm.compiler.used" when present in "MustPreserve" set 2016-05-05 05:14:24 +00:00
sancov [sancov] Revert r271695 which broke all of the PPC bots. 2016-06-04 03:28:27 +00:00
sanstats [yaml2obj] Remove --format option in favor of YAML tags 2016-06-27 19:53:53 +00:00
yaml2obj [yaml2obj] Remove --format option in favor of YAML tags 2016-06-27 19:53:53 +00:00