aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-exegesis/lib/Analysis.cpp
diff options
context:
space:
mode:
authorMin-Yih Hsu <min.hsu@sifive.com>2024-01-31 09:13:38 -0800
committerGitHub <noreply@github.com>2024-01-31 09:13:38 -0800
commit8241106bf30fa74f27e324ba23c42a3503ab5707 (patch)
tree7418ff4f4e817b6aaf5e3581925d4c3016dfc21d /llvm/tools/llvm-exegesis/lib/Analysis.cpp
parent16c4843d3263050b359733a05e86cc4a09361aed (diff)
downloadllvm-8241106bf30fa74f27e324ba23c42a3503ab5707.zip
llvm-8241106bf30fa74f27e324ba23c42a3503ab5707.tar.gz
llvm-8241106bf30fa74f27e324ba23c42a3503ab5707.tar.bz2
[Exegesis] Print epsilon value in the sched model inconsistency report (#80080)
Since I've formatted the epsilon value, I don't think it's necessary to escape it.
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Analysis.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/Analysis.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.cpp b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
index 418fee8..be10c32 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
@@ -524,6 +524,9 @@ Error Analysis::run<Analysis::PrintSchedClassInconsistencies>(
OS << "</span></h3><h3>Cpu: <span class=\"mono\">";
writeEscaped<kEscapeHtml>(OS, FirstPoint.CpuName);
OS << "</span></h3>";
+ OS << "<h3>Epsilon: <span class=\"mono\">"
+ << format("%0.2f", std::sqrt(AnalysisInconsistencyEpsilonSquared_))
+ << "</span></h3>";
const auto &SI = State_.getSubtargetInfo();
for (const auto &RSCAndPoints : makePointsPerSchedClass()) {