REMOVE_DIST_ARRAYS_FROM_IO Handle assumed-size and assumed-shape arrays #64
@@ -61,7 +61,6 @@ static SgExpression* findExprWithVariant(SgExpression* exp, int variant)
|
|||||||
|
|
||||||
static bool checkAssumedSize(SgStatement *st, const string &arrayName, const string ¤tFile)
|
static bool checkAssumedSize(SgStatement *st, const string &arrayName, const string ¤tFile)
|
||||||
{
|
{
|
||||||
__spf_print(1, "Try array %s\n", arrayName.c_str());
|
|
||||||
bool found = false;
|
bool found = false;
|
||||||
|
|
||||||
DIST::Array* array_p = getArrayFromDeclarated(st, arrayName);
|
DIST::Array* array_p = getArrayFromDeclarated(st, arrayName);
|
||||||
@@ -74,8 +73,6 @@ static bool checkAssumedSize(SgStatement *st, const string &arrayName, const str
|
|||||||
SgExpression* list = st->expr(0);
|
SgExpression* list = st->expr(0);
|
||||||
while (list)
|
while (list)
|
||||||
{
|
{
|
||||||
__spf_print(1, "Try list %s\n", list->lhs()->unparse());
|
|
||||||
|
|
||||||
if (list->lhs() && list->lhs()->symbol()->identifier() == arrayName)
|
if (list->lhs() && list->lhs()->symbol()->identifier() == arrayName)
|
||||||
{
|
{
|
||||||
if(findExprWithVariant(list->lhs(), STAR_RANGE))
|
if(findExprWithVariant(list->lhs(), STAR_RANGE))
|
||||||
@@ -724,7 +721,6 @@ void replaceDistributedArraysInIO(vector<ParallelRegion*>& regions,
|
|||||||
{
|
{
|
||||||
if (next->hasLabel())
|
if (next->hasLabel())
|
||||||
{
|
{
|
||||||
__spf_print(1, "%s has label\n", next->unparse());
|
|
||||||
moveLabelBefore(next);
|
moveLabelBefore(next);
|
||||||
find_return_stmt = next->lexPrev();
|
find_return_stmt = next->lexPrev();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user