forked from OSchip/llvm-project
[llvm-exegesis] Fix rL343680 in release mode.
llvm-svn: 343684
This commit is contained in:
parent
aef7908f6e
commit
8a5a6be47a
|
@ -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>";
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue