[llvm] r333175 - [llvm-exegesis] Analysis: show debug string instead of raw key if provided.
Clement Courbet via llvm-commits
llvm-commits at lists.llvm.org
Thu May 24 04:26:00 PDT 2018
Author: courbet
Date: Thu May 24 04:26:00 2018
New Revision: 333175
URL: http://llvm.org/viewvc/llvm-project?rev=333175&view=rev
Log:
[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
Modified:
llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp
Modified: llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp?rev=333175&r1=333174&r2=333175&view=diff
==============================================================================
--- llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp (original)
+++ llvm/trunk/tools/llvm-exegesis/lib/Analysis.cpp Thu May 24 04:26:00 2018
@@ -182,7 +182,10 @@ void Analysis::printSchedClassClustersHt
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>";
More information about the llvm-commits
mailing list