Run the last iteration of parallel_for_loop using a threadpool.
authorRui Ueyama <ruiu@google.com>
Mon, 5 Dec 2016 02:07:29 +0000 (02:07 +0000)
committerRui Ueyama <ruiu@google.com>
Mon, 5 Dec 2016 02:07:29 +0000 (02:07 +0000)
commitca17841fc4adee75968b3b5096c470bade697bf0
treeb04a815328b5cbcee12cf84b0b0a244168287e6b
parent5cb712ed3c63fb77d39247aaad914c37af2a53f2
Run the last iteration of parallel_for_loop using a threadpool.

Remainders of tasks were ran in the main thread, so parallel_for_each
could theoretically take 2x time than the ideal.

llvm-svn: 288631
lld/include/lld/Core/Parallel.h