[PATCH] D101699: [Support/Parallel] Add a special case for 0/1 items to llvm::parallel_for_each.
Chris Lattner via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 17 21:12:02 PST 2022
lattner added a comment.
Spinning up the threadpool is expensive, but the bigger issue is that Threading.h doesn't support reentrant concurrency. If you have a parallel for loop with one element, then that element does a parallel for loop over 10000 elements, it will run in serial. :-(
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D101699/new/
https://reviews.llvm.org/D101699
More information about the llvm-commits
mailing list