[PATCH] D31986: [coff] default to multiple parallel ThinLTO jobs
Bob Haarman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 12 11:48:55 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL300089: [coff] default to multiple parallel ThinLTO jobs (authored by inglorion).
Changed prior to commit:
https://reviews.llvm.org/D31986?vs=95004&id=95011#toc
Repository:
rL LLVM
https://reviews.llvm.org/D31986
Files:
lld/trunk/COFF/Config.h
lld/trunk/COFF/LTO.cpp
Index: lld/trunk/COFF/Config.h
===================================================================
--- lld/trunk/COFF/Config.h
+++ lld/trunk/COFF/Config.h
@@ -115,7 +115,7 @@
unsigned LTOOptLevel = 2;
// Used for /opt:lldltojobs=N
- unsigned LTOJobs = 1;
+ unsigned LTOJobs = 0;
// Used for /opt:lldltopartitions=N
unsigned LTOPartitions = 1;
Index: lld/trunk/COFF/LTO.cpp
===================================================================
--- lld/trunk/COFF/LTO.cpp
+++ lld/trunk/COFF/LTO.cpp
@@ -73,7 +73,7 @@
checkError(Conf.addSaveTemps(std::string(Config->OutputFile) + ".",
/*UseInputModulePath*/ true));
lto::ThinBackend Backend;
- if (Config->LTOJobs != -1u)
+ if (Config->LTOJobs != 0)
Backend = lto::createInProcessThinBackend(Config->LTOJobs);
return llvm::make_unique<lto::LTO>(std::move(Conf), Backend,
Config->LTOPartitions);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31986.95011.patch
Type: text/x-patch
Size: 949 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170412/61ad526c/attachment.bin>
More information about the llvm-commits
mailing list