summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-exegesis/lib/Analysis.cpp
diff options
context:
space:
mode:
authorClement Courbet <courbet@google.com>2018-05-16 11:49:15 +0000
committerClement Courbet <courbet@google.com>2018-05-16 11:49:15 +0000
commitc922e0779635c1135566555e7c3d9c938bb63e7a (patch)
tree1e05c3a7ec3f2926a5d21ceba5740e420a3ce1e5 /llvm/tools/llvm-exegesis/lib/Analysis.cpp
parent344b09954dbe2b1d5a15c5a8470f52f9c73769e8 (diff)
downloadbcm5719-llvm-c922e0779635c1135566555e7c3d9c938bb63e7a.tar.gz
bcm5719-llvm-c922e0779635c1135566555e7c3d9c938bb63e7a.zip
[llvm-exegesis] Fix unused variable warning in release mode.
llvm-svn: 332455
Diffstat (limited to 'llvm/tools/llvm-exegesis/lib/Analysis.cpp')
-rw-r--r--llvm/tools/llvm-exegesis/lib/Analysis.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/llvm-exegesis/lib/Analysis.cpp b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
index da1e4688f61..e026308ad19 100644
--- a/llvm/tools/llvm-exegesis/lib/Analysis.cpp
+++ b/llvm/tools/llvm-exegesis/lib/Analysis.cpp
@@ -45,9 +45,9 @@ void Analysis::printInstructionRow(const size_t ClusterId, const size_t PointId,
OS << kCsvSep;
const auto OpcodeIt = MnemonicToOpcode_.find(Point.Key.OpcodeName);
if (OpcodeIt != MnemonicToOpcode_.end()) {
- const auto &SchedModel = SubtargetInfo_->getSchedModel();
const unsigned SchedClassId = InstrInfo_->get(OpcodeIt->second).getSchedClass();
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
+ const auto &SchedModel = SubtargetInfo_->getSchedModel();
const llvm::MCSchedClassDesc *const SCDesc =
SchedModel.getSchedClassDesc(SchedClassId);
writeCsvEscaped(OS, SCDesc->Name);
OpenPOWER on IntegriCloud