From 85b8138bc6c74dfa749dc3d72dc2021c9517e159 Mon Sep 17 00:00:00 2001 From: Andrea Di Biagio Date: Fri, 6 Apr 2018 15:30:02 +0000 Subject: [llvm-mca] Do not separate iterations with a newline in the timeline view. Also, update a few tests to minimize the diff in D45369. No functional change intended. llvm-svn: 329403 --- llvm/tools/llvm-mca/TimelineView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/tools/llvm-mca') diff --git a/llvm/tools/llvm-mca/TimelineView.cpp b/llvm/tools/llvm-mca/TimelineView.cpp index 9419fe4b4a6..02388bb3838 100644 --- a/llvm/tools/llvm-mca/TimelineView.cpp +++ b/llvm/tools/llvm-mca/TimelineView.cpp @@ -155,7 +155,7 @@ void TimelineView::printTimelineViewEntry(raw_string_ostream &OS, const TimelineViewEntry &Entry, unsigned Iteration, unsigned SourceIndex) const { - if (SourceIndex == 0) + if (Iteration == 0 && SourceIndex == 0) OS << '\n'; OS << '[' << Iteration << ',' << SourceIndex << "]\t"; for (unsigned I = 0, E = Entry.CycleDispatched; I < E; ++I) -- cgit v1.2.3