[PATCH] D60758: Add an assertion that parallelForEach doesn't nest.
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 16 01:18:35 PDT 2019
ruiu added a comment.
If you worry about the cost of assigning a boolean value to the thread-local variable, I'd think that's really cheap and negligible. This function is not called too casually, because distributing jobs to threads waiting in the thread pool is not cheap. Compared to that, these assignments are virtually nothing.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60758/new/
https://reviews.llvm.org/D60758
More information about the llvm-commits
mailing list