summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit90b2ac269608a52c73634ea997301d604068b41e (patch)
tree50f07ac1174a1d4bb3cdcfe843e8e51096448c9e /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
parentf86c939bfffd40c8b37315dfed44b9f27ce4349e (diff)
downloadbcm5719-llvm-90b2ac269608a52c73634ea997301d604068b41e.tar.gz
bcm5719-llvm-90b2ac269608a52c73634ea997301d604068b41e.zip
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! llvm-svn: 117345
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
-rw-r--r--llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
index 7b7ea2b265a..26a672c0341 100644
--- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
+++ b/llvm/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,
OpenPOWER on IntegriCloud