[llvm-exegesis] Fix rL343680 in release mode.

llvm-svn: 343684
This commit is contained in:
Clement Courbet 2018-10-03 12:35:35 +00:00
parent 37ea2d8ba1
commit 4c01276a93
2 changed files with 3 additions and 2 deletions

View File

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

View File

@ -53,6 +53,7 @@ private:
ResolvedSchedClass(const llvm::MCSubtargetInfo &STI,
unsigned ResolvedSchedClassId, bool WasVariant);
const unsigned SchedClassId;
const llvm::MCSchedClassDesc *const SCDesc;
const bool WasVariant; // Whether the original class was variant.
const llvm::SmallVector<llvm::MCWriteProcResEntry, 8>