[lld] [llvm] Make WriteIndexesThinBackend multi threaded (PR #109847)

Nuri Amari via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 7 01:46:02 PDT 2024


================
@@ -87,6 +87,7 @@ BitcodeCompiler::BitcodeCompiler() {
   auto onIndexWrite = [&](StringRef S) { thinIndices.erase(S); };
   if (config->thinLTOIndexOnly) {
     backend = lto::createWriteIndexesThinBackend(
+        llvm::hardware_concurrency(config->thinLTOJobs),
----------------
NuriAmari wrote:

I tried `heavyweight_hardware_concurrency` as well, but I didn't see a noticeable difference. 

https://github.com/llvm/llvm-project/pull/109847


More information about the llvm-commits mailing list