alexey-bataev wrote: I suggest defining the canonical (pessimistic in performance, but optimistic in correctness) form of the loop and emit it in the frontend. Later OpenMPOpt pass can optimize this "canonical" (slow but correct) form to better (but still correct) form, if possible (dropping critical section, for example, if it is proved it is safe).
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