diff options
Diffstat (limited to 'llvm/tools/llvm-mca/TimelineView.cpp')
| -rw-r--r-- | llvm/tools/llvm-mca/TimelineView.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |

