aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-exegesis/lib/Analysis.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-10-03 12:35:35 +0000
committerClement Courbet <courbet@google.com>2018-10-03 12:35:35 +0000
commit8a5a6be47a3af480bf94e9881f16bb31b6c2ccef (patch)
tree8fad1ab74dcbacd8b452d06d99f902e47f0b1887 /llvm/tools/llvm-exegesis/lib/Analysis.cpp
parentaef7908f6eb060b928f4aa820e4ba5e316ee5e00 (diff)
downloadllvm-8a5a6be47a3af480bf94e9881f16bb31b6c2ccef.zip
llvm-8a5a6be47a3af480bf94e9881f16bb31b6c2ccef.tar.gz
llvm-8a5a6be47a3af480bf94e9881f16bb31b6c2ccef.tar.bz2
[llvm-exegesis] Fix rL343680 in release mode.
llvm-svn: 343684
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Analysis.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/Analysis.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.cpp b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
index 4c05196..cb5d198 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
@@ -404,7 +404,7 @@ getNonRedundantWriteProcRes(const llvm::MCSchedClassDesc &SCDesc,
Analysis::ResolvedSchedClass::ResolvedSchedClass(
const llvm::MCSubtargetInfo &STI, unsigned ResolvedSchedClassId,
bool WasVariant)
- : SCDesc(STI.getSchedModel().getSchedClassDesc(ResolvedSchedClassId)),
+ : SchedClassId(ResolvedSchedClassId), SCDesc(STI.getSchedModel().getSchedClassDesc(ResolvedSchedClassId)),
WasVariant(WasVariant),
NonRedundantWriteProcRes(getNonRedundantWriteProcRes(*SCDesc, STI)),
IdealizedProcResPressure(computeIdealizedProcResPressure(
@@ -669,7 +669,7 @@ llvm::Error Analysis::run<Analysis::PrintSchedClassInconsistencies>(
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
writeEscaped<kEscapeHtml>(OS, RSCAndPoints.RSC.SCDesc->Name);
#else
- OS << SchedClassId;
+ OS << RSCAndPoints.RSC.SchedClassId;
#endif
OS << "</span> contains instructions whose performance characteristics do"
" not match that of LLVM:</p>";