Skip to content

Commit c7130d3

Browse files
committed
[TSAR, APC, Diags] Emit diagnostics for loops that cannot be parallelized.
1 parent 2aed493 commit c7130d3

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

lib/APC/Parallelization.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,12 @@ bool APCParallelizationPass::runOnModule(Module &M) {
10441044
APCCtx.mImpl->Diags);
10451045
for (auto &Access : *DIArrayInfo)
10461046
collectArrayAccessInfo(M, Access, APCCtx, AccessPool, Files, ArrayIds);
1047+
for (auto &Info : Files) {
1048+
auto &Msgs{getObjectForFileFromMap(Info.getKey().str().c_str(),
1049+
APCCtx.mImpl->Diags)};
1050+
for (auto &&[Loc, L] : Info.second.get<apc::LoopGraph>())
1051+
L->addConflictMessages(&Msgs);
1052+
}
10471053
// A stub variable which is not used at this moment.
10481054
std::map<PFIKeyT, apc::Array *> CreatedArrays;
10491055
buildDataDistributionGraph(Regions, FormalToActual, ArrayRWs, FileToLoop,

0 commit comments

Comments
 (0)