diff options
author | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2019-04-08 17:50:02 +0000 |
---|---|---|
committer | Jonathan Peyton <jonathan.l.peyton@intel.com> | 2019-04-08 17:50:02 +0000 |
commit | feac33ebb01ae71cd45e410954510f1dfa21c06a (patch) | |
tree | abb87081ccf09f5b23a9d166623b0a3f261e9f9d /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp | |
parent | d3e207057fc4f9531ac7e48e1a6be0aa96557971 (diff) | |
download | llvm-feac33ebb01ae71cd45e410954510f1dfa21c06a.zip llvm-feac33ebb01ae71cd45e410954510f1dfa21c06a.tar.gz llvm-feac33ebb01ae71cd45e410954510f1dfa21c06a.tar.bz2 |
[OpenMP] Clean up load balancing dynamic mode
This patch cleans up the bookkeeping code for the load balancing dynamic mode.
When a thread is moved to or from the thread pool, the th_active_in_pool flag
and the __kmp_thread_pool_active_nth global counter are both updated. This
removes the need for the corrective code in the main wait loop. Another global
counter, __kmp_thread_pool_nth, was removed completely, as it was only used for
debugging, but was not under KMP_DEBUG.
Patch by Terry Wilmarth
Differential Revision: https://reviews.llvm.org/D59508
llvm-svn: 357927
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions