wrong privatization of threadprivate arrays
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user