summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/Analysis.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-05-24 11:26:00 +0000
committerClement Courbet <courbet@google.com>2018-05-24 11:26:00 +0000
commitb1f1b50da9aaee379070d3779f546e87c87f01c2 (patch)
treefdb79c58417d7f753bf1332e495be37b8fc27520 /llvm/tools/llvm-exegesis/lib/Analysis.cpp
parent42abe419e24c6615a835fca62c1b3085e7957de8 (diff)
downloadbcm5719-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.cpp5
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>";
OpenPOWER on IntegriCloud