[llvm-branch-commits] [Support] parallelFor: enable caller participation (PR #209690)

Andrew Ng via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Jul 16 11:48:31 PDT 2026


nga888 wrote:

In principle, I think this is fine but it does not really feel right to continue to expose `getThreadIndex()`, so perhaps that should be removed if this change is accepted?

The only other thing that comes to mind is that the caller could get delayed by work initiated by another caller thread which could then introduce latency. But I do not believe that this situation arises right now.

I haven't had much time to consider this in detail and will soon be on PTO for 2 weeks.

https://github.com/llvm/llvm-project/pull/209690


More information about the llvm-branch-commits mailing list