[clang] [llvm] [OpenMP] Diagnostic check for imperfect loop collapse (PR #96087)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Mon Aug 19 10:49:31 PDT 2024
alexey-bataev wrote:
> Can you explain why the critical section version of the code is safe, and why it is an improvement over simply not collapsing the loop?
1. I'm not saying it is safe, I'm just saying that something like this might be safe
2. Without properly collapsing the loops, the compiler won't be able to properly schedule the execution per programmer's request
https://github.com/llvm/llvm-project/pull/96087
More information about the llvm-commits
mailing list