diff options
| author | Clement Courbet <courbet@google.com> | 2018-05-24 11:26:00 +0000 |
|---|---|---|
| committer | Clement Courbet <courbet@google.com> | 2018-05-24 11:26:00 +0000 |
| commit | b1f1b50da9aaee379070d3779f546e87c87f01c2 (patch) | |
| tree | fdb79c58417d7f753bf1332e495be37b8fc27520 /llvm/tools/llvm-exegesis/lib/Analysis.cpp | |
| parent | 42abe419e24c6615a835fca62c1b3085e7957de8 (diff) | |
| download | bcm5719-llvm-b1f1b50da9aaee379070d3779f546e87c87f01c2.tar.gz bcm5719-llvm-b1f1b50da9aaee379070d3779f546e87c87f01c2.zip | |
[llvm-exegesis] Analysis: show debug string instead of raw key if provided.
Reviewers: gchatelet
Subscribers: tschuett, llvm-commits
Differential Revision: https://reviews.llvm.org/D47315
llvm-svn: 333175
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Analysis.cpp')
| -rw-r--r-- | llvm/tools/llvm-exegesis/lib/Analysis.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.cpp b/llvm/tools/llvm-exegesis/lib/Analysis.cpp index b709dc9378a..6ad693fa421 100644 --- a/llvm/tools/llvm-exegesis/lib/Analysis.cpp +++ b/llvm/tools/llvm-exegesis/lib/Analysis.cpp @@ -182,7 +182,10 @@ void Analysis::printSchedClassClustersHtml(std::vector<size_t> PointIds, OS << "<tr><th>ClusterId</th><th>Opcode/Config</th>"; for (const auto &Measurement : Points[PointIds[0]].Measurements) { OS << "<th>"; - writeEscaped<kEscapeHtml>(OS, Measurement.Key); + if (Measurement.DebugString.empty()) + writeEscaped<kEscapeHtml>(OS, Measurement.Key); + else + writeEscaped<kEscapeHtml>(OS, Measurement.DebugString); OS << "</th>"; } OS << "</tr>"; |

