[Mlir-commits] [mlir] [mlir][OpenMP] don't add compiler-generated barrier in single threaded code (PR #174105)

Michael Kruse llvmlistbot at llvm.org
Mon Jan 5 12:40:06 PST 2026


================
@@ -1678,6 +1678,25 @@ allocatePrivateVars(llvm::IRBuilderBase &builder,
   return afterAllocas;
 }
 
+// This can't always be determined statically, but when we can, it is good to
+// avoid generating compiler-added barriers which will deadlock the program.
----------------
Meinersbur wrote:

[nit] `///` doxygen comments

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


More information about the Mlir-commits mailing list