[PATCH] D59277: Speeding up llvm-cov with multithreaded renderFiles.

Vedant Kumar via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 13 16:40:25 PDT 2019


vsk added a comment.

Thanks for working on this!



================
Comment at: llvm/tools/llvm-cov/CoverageExporterJson.cpp:158
+    NumThreads = std::max(1U, std::min(llvm::heavyweight_hardware_concurrency(),
+                                       unsigned(SourceFiles.size())));
+  }
----------------
Can the parallelism be controlled by -num-threads/-j, similar to: https://llvm.org/docs/CommandGuide/llvm-cov.html#cmdoption-llvm-cov-show-num-threads

This will help write a test that the output from e.g. `-j 4` matches the output from `-j 1`.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59277/new/

https://reviews.llvm.org/D59277





More information about the llvm-commits mailing list