[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
diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.cpp b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
index b709dc9..6ad693f 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
@@ -182,7 +182,10 @@
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>";