[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:30:46 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL333175: [llvm-exegesis] Analysis: show debug string instead of raw key if provided. (authored by courbet, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D47315

Files:
  llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp


Index: llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp
===================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp
+++ llvm/trunk/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.148380.patch
Type: text/x-patch
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180524/abb1833f/attachment.bin>


More information about the llvm-commits mailing list