diff options
author | Teresa Johnson <tejohnson@google.com> | 2016-10-19 17:35:01 +0000 |
---|---|---|
committer | Teresa Johnson <tejohnson@google.com> | 2016-10-19 17:35:01 +0000 |
commit | ec544c552ed63cc0e21ccddf342023084c9b904f (patch) | |
tree | 41b3cceb5a8f43a6b7849deb5b3c0825bbf335f4 /llvm/tools/gold/gold-plugin.cpp | |
parent | 69d7cf0d41cc7e41967c16aab471bf9db71ed468 (diff) | |
download | bcm5719-llvm-ec544c552ed63cc0e21ccddf342023084c9b904f.tar.gz bcm5719-llvm-ec544c552ed63cc0e21ccddf342023084c9b904f.zip |
[ThinLTO] Default backend threads to heavyweight_hardware_concurrency
Summary:
Changes default backend parallelism from thread::hardware_concurrency to
the new llvm::heavyweight_hardware_concurrency, which for X86 Linux
defaults to the number of physical cores (and will fall back to
thread::hardware_concurrency otherwise). This avoid oversubscribing
the physical cores using hyperthreading.
Reviewers: mehdi_amini, pcc
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D25775
llvm-svn: 284618
Diffstat (limited to 'llvm/tools/gold/gold-plugin.cpp')
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 055c462e69a..1366c0f77fd 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -118,8 +118,8 @@ namespace options { static unsigned OptLevel = 2; // Default parallelism of 0 used to indicate that user did not specify. // Actual parallelism default value depends on implementation. - // Currently only affects ThinLTO, where the default is the - // hardware_concurrency. + // Currently only affects ThinLTO, where the default is + // llvm::heavyweight_hardware_concurrency. static unsigned Parallelism = 0; // Default regular LTO codegen parallelism (number of partitions). static unsigned ParallelCodeGenParallelismLevel = 1; |