replace_io_arrays #67

Merged
Alexander_KS merged 5 commits from replace_io_arrays into master 2025-10-01 18:13:01 +00:00
Showing only changes of commit 54615e34d4 - Show all commits

View File

@@ -19,7 +19,7 @@ using std::pair;
static inline bool isArrayDeclaration(SgStatement* st) static inline bool isArrayDeclaration(SgStatement* st)
{ {
return isSgDeclarationStatement(st) || st->variant() == DIM_STAT || st->variant() == COMM_STAT; return isSgDeclarationStatement(st) || isSgVarListDeclStmt(st) || isSgNestedVarListDeclStmt(st);
} }
static SgExpression* findExprWithVariant(SgExpression* exp, int variant) static SgExpression* findExprWithVariant(SgExpression* exp, int variant)
@@ -855,7 +855,7 @@ void replaceDistributedArraysInIO(vector<ParallelRegion*>& regions,
if (last_io_bound == curr_stmt) // always true if (last_io_bound == curr_stmt) // always true
last_io_bound = curr_stmt->lexPrev(); last_io_bound = curr_stmt->lexPrev();
} }
curr_stmt = curr_stmt->lexNext(); curr_stmt = curr_stmt->lexNext();
} }
} }