[Mlir-commits] [flang] [mlir] [mlir][OpenMP][flang] make private variable allocation implicit in omp.private (PR #124019)

Sergio Afonso llvmlistbot at llvm.org
Thu Feb 13 07:39:12 PST 2025


================
@@ -184,7 +218,8 @@ bool DataSharingProcessor::needBarrier() {
   // Emit implicit barrier for linear clause. Maybe on somewhere else.
   for (const semantics::Symbol *sym : allPrivatizedSymbols) {
     if (sym->test(semantics::Symbol::Flag::OmpLastPrivate) &&
-        (sym->test(semantics::Symbol::Flag::OmpFirstPrivate) || callsInitClone))
+        (sym->test(semantics::Symbol::Flag::OmpFirstPrivate) ||
+         mightHaveReadHostSym))
----------------
skatrak wrote:

Thank you for the quick response. I just created #127074 to address the second part of the issue. Though it looks like, from what you're saying, we might also want to treat induction variables differently as well?

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


More information about the Mlir-commits mailing list