summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2016-11-17 17:06:51 +0000
committerRui Ueyama <ruiu@google.com>2016-11-17 17:06:51 +0000
commit7ee38e00a56d9cb8320353a259bb5d66b8107ca8 (patch)
tree84001dec8512190f48bcd0b9642bc6fd8fb256a2
parent4cb4c7f4b1fb4c1b67afba4de1e933539ceb7b61 (diff)
downloadbcm5719-llvm-7ee38e00a56d9cb8320353a259bb5d66b8107ca8.tar.gz
bcm5719-llvm-7ee38e00a56d9cb8320353a259bb5d66b8107ca8.zip
Enable -threads by default.
LLD supports multi-threading, and it seems to be working well as you can see in r287140. In short, LLD runs a few percent to 30% faster with -threads and more than 50% faster if you are using -build-id (your mileage may vary depending on your computer). However, I don't think most users even don't know about that because -threads is not a default option. This patch enables it by default. Discussion thread: http://lists.llvm.org/pipermail/llvm-dev/2016-November/107160.html llvm-svn: 287237
-rw-r--r--lld/ELF/Driver.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/Driver.cpp b/lld/ELF/Driver.cpp
index c54d0ae766e..e999fdbca17 100644
--- a/lld/ELF/Driver.cpp
+++ b/lld/ELF/Driver.cpp
@@ -496,7 +496,7 @@ void LinkerDriver::readConfigs(opt::InputArgList &Args) {
Config->SaveTemps = Args.hasArg(OPT_save_temps);
Config->Shared = Args.hasArg(OPT_shared);
Config->Target1Rel = getArg(Args, OPT_target1_rel, OPT_target1_abs, false);
- Config->Threads = getArg(Args, OPT_threads, OPT_no_threads, false);
+ Config->Threads = getArg(Args, OPT_threads, OPT_no_threads, true);
Config->Trace = Args.hasArg(OPT_trace);
Config->Verbose = Args.hasArg(OPT_verbose);
Config->WarnCommon = Args.hasArg(OPT_warn_common);
OpenPOWER on IntegriCloud