[flang-commits] [flang] [flang][OpenMP] Try to unify induction var privatization for sequential loops inside parallel regions. (PR #91116)

Kiran Chandramohan via flang-commits flang-commits at lists.llvm.org
Mon May 6 04:08:33 PDT 2024


================
@@ -1674,7 +1674,6 @@ void OmpAttributeVisitor::ResolveSeqLoopIndexInParallelOrTaskConstruct(
   // parallel or task
   if (auto *symbol{ResolveOmp(iv, Symbol::Flag::OmpPrivate, targetIt->scope)}) {
     targetIt++;
-    symbol->set(Symbol::Flag::OmpPreDetermined);
----------------
kiranchandramohan wrote:

I would prefer retaining this. Can we skip if it is predetermined and a parallel region in the DataSharingprocessor?

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


More information about the flang-commits mailing list