[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
This commit is contained in:
Clement Courbet 2018-05-24 11:26:00 +00:00
parent 42abe419e2
commit b1f1b50da9
1 changed files with 4 additions and 1 deletions

View File

@ -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>";