Skip to content

Commit 8102d91

Browse files
committed
[AutoDiff] Make DifferentiableActivityInfo::dump print an end marker.
End markers are useful for FileCheck.
1 parent d7bf739 commit 8102d91

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/SILOptimizer/Analysis/DifferentiableActivityAnalysis.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,8 @@ void DifferentiableActivityInfo::dump(SILAutoDiffIndices indices,
557557
for (auto &inst : bb)
558558
for (auto res : inst.getResults())
559559
dump(res, indices, s);
560-
s << '\n';
560+
if (std::next(bb.getIterator()) != fn.end())
561+
s << '\n';
561562
}
563+
s << "End activity info for " << fn.getName() << " at " << indices << "\n\n";
562564
}

0 commit comments

Comments
 (0)