summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/Analysis.cpp
diff options
context:
space:
mode:
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 97fdf4eff1f..da1e4688f61 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
@@ -47,9 +47,9 @@ void Analysis::printInstructionRow(const size_t ClusterId, const size_t PointId,
if (OpcodeIt != MnemonicToOpcode_.end()) {
const auto &SchedModel = SubtargetInfo_->getSchedModel();
const unsigned SchedClassId = InstrInfo_->get(OpcodeIt->second).getSchedClass();
- const llvm::MCSchedClassDesc *const SCDesc =
- SchedModel.getSchedClassDesc(SchedClassId);
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+ const llvm::MCSchedClassDesc *const SCDesc =
+ SchedModel.getSchedClassDesc(SchedClassId);
writeCsvEscaped(OS, SCDesc->Name);
#else
OS << SchedClassId;
OpenPOWER on IntegriCloud