diff --git a/llvm/tools/llvm-mca/Views/TimelineView.cpp b/llvm/tools/llvm-mca/Views/TimelineView.cpp --- a/llvm/tools/llvm-mca/Views/TimelineView.cpp +++ b/llvm/tools/llvm-mca/Views/TimelineView.cpp @@ -296,8 +296,10 @@ // attribute is set correctly whether or not it is greater // than timeline-max-cycles so we can use that to ensure // we don't early exit because of a 0 latency instruction. - if (Entry.CycleRetired == 0 && Entry.CycleExecuted != 0) + if (Entry.CycleRetired == 0 && Entry.CycleExecuted != 0) { + FOS << "Truncated display due to cycle limit\n"; return; + } unsigned SourceIndex = IID % Source.size(); printTimelineViewEntry(FOS, Entry, Iteration, SourceIndex);