[PATCH] D47315: [llvm-exegesis] Analysis: show debug string instead of raw key if provided.
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu May 24 04:12:51 PDT 2018
courbet created this revision.
courbet added a reviewer: gchatelet.
Herald added a subscriber: tschuett.
Repository:
rL LLVM
https://reviews.llvm.org/D47315
Files:
tools/llvm-exegesis/lib/Analysis.cpp
Index: tools/llvm-exegesis/lib/Analysis.cpp
===================================================================
--- tools/llvm-exegesis/lib/Analysis.cpp
+++ 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>";
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D47315.148373.patch
Type: text/x-patch
Size: 627 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180524/e07e8762/attachment.bin>
More information about the llvm-commits
mailing list