[llvm] [Support] Optimize parallel `TaskGroup` (PR #189196)
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 29 19:56:04 PDT 2026
================
@@ -141,34 +141,39 @@ class ThreadPoolExecutor {
[&] { TheJobserver->release(std::move(Slot)); });
while (true) {
- std::function<void()> Task;
----------------
MaskRay wrote:
I made some investigation. Default-constructible object leads slightly more instructions. `auto Item =` leads to fewer instructions, but I don't expect there is a performance difference.
https://github.com/llvm/llvm-project/pull/189196
More information about the llvm-commits
mailing list