ruiu added a comment. It is broken. The taskgroup should not spawn more threads than the number of physical cores however it is used. It is intended to be a thread-pool, and spawning threads per task is nonsense. https://reviews.llvm.org/D36607