aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2010-10-26 00:51:57 +0000
committerNick Lewycky <nicholas@mxc.ca>2010-10-26 00:51:57 +0000
commita568d66512759f93e0d37af7c8f905603dd27449 (patch)
treecb1cfcd1be047e181bcd69c40fac481c618630ed /lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parent0a12b801b546269b87c3806c6d4606cf2b287daa (diff)
downloadexternal_llvm-a568d66512759f93e0d37af7c8f905603dd27449.zip
external_llvm-a568d66512759f93e0d37af7c8f905603dd27449.tar.gz
external_llvm-a568d66512759f93e0d37af7c8f905603dd27449.tar.bz2
For statistics that are only used in functions declared in !NDEBUG, wrap the
declarations in !NDEBUG to avoid -Wunused-variable warnings. Patch by Matt Beaumont-Gay! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@117345 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 7b7ea2b..26a672c 100644
--- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
@@ -56,10 +56,13 @@ STATISTIC(NumFastIselFailures, "Number of instructions fast isel failed on");
STATISTIC(NumFastIselBlocks, "Number of blocks selected entirely by fast isel");
STATISTIC(NumDAGBlocks, "Number of blocks selected using DAG");
STATISTIC(NumDAGIselRetries,"Number of times dag isel has to try another path");
+
+#ifndef NDEBUG
STATISTIC(NumBBWithOutOfOrderLineInfo,
"Number of blocks with out of order line number info");
STATISTIC(NumMBBWithOutOfOrderLineInfo,
"Number of machine blocks with out of order line number info");
+#endif
static cl::opt<bool>
EnableFastISelVerbose("fast-isel-verbose", cl::Hidden,