summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-mca
diff options
context:
space:
mode:
authorAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-04-06 15:30:02 +0000
committerAndrea Di Biagio <Andrea_DiBiagio@sn.scee.net>2018-04-06 15:30:02 +0000
commit85b8138bc6c74dfa749dc3d72dc2021c9517e159 (patch)
treec5a3c046e7bfa1c8434f1e84464cd68a644365b2 /llvm/tools/llvm-mca
parent74402acb00d209abced2d3c9d20a08ae3f5b43a6 (diff)
downloadbcm5719-llvm-85b8138bc6c74dfa749dc3d72dc2021c9517e159.tar.gz
bcm5719-llvm-85b8138bc6c74dfa749dc3d72dc2021c9517e159.zip
[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
Diffstat (limited to 'llvm/tools/llvm-mca')
-rw-r--r--llvm/tools/llvm-mca/TimelineView.cpp2
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)
OpenPOWER on IntegriCloud