[llvm] 0a869ef - [llvm-mca][timeline] Indicate output was stopped due to cycle limit.
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Thu Oct 14 11:10:21 PDT 2021
Author: Daniel Sanders
Date: 2021-10-14T11:10:09-07:00
New Revision: 0a869ef3a844b3fcb64c5a1d9c7a5d4988b00c07
URL: https://github.com/llvm/llvm-project/commit/0a869ef3a844b3fcb64c5a1d9c7a5d4988b00c07
DIFF: https://github.com/llvm/llvm-project/commit/0a869ef3a844b3fcb64c5a1d9c7a5d4988b00c07.diff
LOG: [llvm-mca][timeline] Indicate output was stopped due to cycle limit.
It can be a bit confusing to stop with no explanation so we should indicate
when further output was prevented by the cycle limit.
Differential Revision: https://reviews.llvm.org/D111753
Added:
Modified:
llvm/tools/llvm-mca/Views/TimelineView.cpp
Removed:
################################################################################
diff --git a/llvm/tools/llvm-mca/Views/TimelineView.cpp b/llvm/tools/llvm-mca/Views/TimelineView.cpp
index 4ecc3015529ce..5c05edbdea686 100644
--- a/llvm/tools/llvm-mca/Views/TimelineView.cpp
+++ b/llvm/tools/llvm-mca/Views/TimelineView.cpp
@@ -296,8 +296,10 @@ void TimelineView::printTimeline(raw_ostream &OS) const {
// 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);
More information about the llvm-commits
mailing list