[llvm] r176218 - Silence the unused variable warning.
Nadav Rotem
nrotem at apple.com
Wed Feb 27 14:52:54 PST 2013
Author: nadav
Date: Wed Feb 27 16:52:54 2013
New Revision: 176218
URL: http://llvm.org/viewvc/llvm-project?rev=176218&view=rev
Log:
Silence the unused variable warning.
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp?rev=176218&r1=176217&r2=176218&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp Wed Feb 27 16:52:54 2013
@@ -58,13 +58,14 @@
#include <algorithm>
using namespace llvm;
-STATISTIC(NumFastIselFailures, "Number of instructions fast isel failed on");
-STATISTIC(NumFastIselSuccess, "Number of instructions fast isel selected");
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(NumDAGIselRetries,"Number of times dag isel has to try another path");
+STATISTIC(NumFastIselFailures, "Number of instructions fast isel failed on");
+STATISTIC(NumFastIselSuccess, "Number of instructions fast isel selected");
+
static cl::opt<bool>
EnableFastISelVerbose2("fast-isel-verbose2", cl::Hidden,
cl::desc("Enable extra verbose messages in the \"fast\" "
@@ -1076,8 +1077,8 @@ void SelectionDAGISel::SelectAllBasicBlo
FastIS->setLastLocalValue(0);
}
- unsigned NumFastIselRemaining = 0;
- NumFastIselRemaining = std::distance(Begin, End);
+ unsigned NumFastIselRemaining = std::distance(Begin, End);
+ (void) NumFastIselRemaining;
// Do FastISel on as many instructions as possible.
for (; BI != Begin; --BI) {
const Instruction *Inst = llvm::prior(BI);
@@ -1150,6 +1151,7 @@ void SelectionDAGISel::SelectAllBasicBlo
// Recompute NumFastIselRemaining as Selection DAG instruction
// selection may have handled the call, input args, etc.
unsigned RemainingNow = std::distance(Begin, BI);
+ (void) RemainingNow;
DEBUG(NumFastIselFailures += NumFastIselRemaining - RemainingNow);
DEBUG(NumFastIselRemaining = RemainingNow);
continue;
More information about the llvm-commits
mailing list