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
_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to