improved shared memory parallelization

This commit is contained in:
ALEXks
2024-05-13 18:09:45 +03:00
parent 0b6a915753
commit f88e1f570c
3 changed files with 5 additions and 2 deletions

View File

@@ -580,6 +580,9 @@ static bool hasSubstringRef(SgExpression* ex)
if (ex->variant() == ARRAY_OP) if (ex->variant() == ARRAY_OP)
return true; return true;
if (ex->variant() == ARRAY_REF && !isArrayRef(ex))
return true;
if (ex->lhs()) if (ex->lhs())
res |= hasSubstringRef(ex->lhs()); res |= hasSubstringRef(ex->lhs());
if (ex->rhs()) if (ex->rhs())

View File

@@ -1915,7 +1915,7 @@ static bool runAnalysis(SgProject &project, const int curr_regime, const bool ne
else if (curr_regime == FIX_COMMON_BLOCKS) else if (curr_regime == FIX_COMMON_BLOCKS)
fixCommonBlocks(allFuncInfo, commonBlocks, &project); fixCommonBlocks(allFuncInfo, commonBlocks, &project);
else if (curr_regime == SELECT_ARRAY_DIM_CONF) { else if (curr_regime == SELECT_ARRAY_DIM_CONF) {
SelectArrayConfForParallelization(&project, allFuncInfo, loopGraph, SPF_messages, arrayLinksByFuncCalls); ;// SelectArrayConfForParallelization(&project, allFuncInfo, loopGraph, SPF_messages, arrayLinksByFuncCalls);
} }
else if (curr_regime == GET_MIN_MAX_BLOCK_DIST) else if (curr_regime == GET_MIN_MAX_BLOCK_DIST)
{ {

View File

@@ -1,3 +1,3 @@
#pragma once #pragma once
#define VERSION_SPF "2334" #define VERSION_SPF "2336"