wrong privatization of threadprivate arrays

This commit is contained in:
mkoch
2023-12-01 10:17:06 +03:00
parent abd0c0caac
commit 2c62e57503

View File

@@ -629,16 +629,6 @@ void findArrayRef(const vector<SgForStmt*> &parentLoops, SgExpression *currExp,
fillReductionsFromComment(new Statement(data), loopsReductions);
fillReductionsFromComment(new Statement(data), loopsReductionsLoc);
}
set<string> dummy;
auto res = parseOmpDirs(loop, dummy);
for (auto& dir : res)
if (dir.keys.find("do") != dir.keys.end())
if (itFound->second.first->IsOmpThreadPrivate())
{
loopsPrivates.insert(itFound->second.first->GetShortName());
privatesVarsForLoop[z].insert(itFound->second.first->GetShortName());
}
}
for (auto &elem : loopsReductions)