[flang] [llvm] [flang][OpenMP] Try to unify induction var privatization for OMP regions. (PR #91116)
    Leandro Lupori via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Tue May 14 08:53:58 PDT 2024
    
    
  
================
@@ -289,12 +290,34 @@ void DataSharingProcessor::collectSymbolsInNestedRegions(
        eval.getNestedEvaluations()) {
     if (nestedEval.hasNestedEvaluations()) {
       if (nestedEval.isConstruct())
-        // Recursively look for OpenMP constructs within `nestedEval`'s region
----------------
luporl wrote:
I would leave this comment. It helps to understand what this part of the code is doing, that we only continue looking for OpenMP constructs recursively for non-OpenMP constructs. Otherwise `converter.collectSymbolSet` can be used to collect the remaining symbols.
https://github.com/llvm/llvm-project/pull/91116
    
    
More information about the llvm-commits
mailing list