diff options
author | Nadav Rotem <nrotem@apple.com> | 2013-02-27 22:52:54 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2013-02-27 22:52:54 +0000 |
commit | 139f50a1a8d985bd950d88cef54a7ee560de9cb9 (patch) | |
tree | ca0b7b4256a53af7b00f2711127e255a95b78435 /lib | |
parent | 07cd932c93fc3d552763f3eddced138bffdd9bd9 (diff) | |
download | external_llvm-139f50a1a8d985bd950d88cef54a7ee560de9cb9.zip external_llvm-139f50a1a8d985bd950d88cef54a7ee560de9cb9.tar.gz external_llvm-139f50a1a8d985bd950d88cef54a7ee560de9cb9.tar.bz2 |
Silence the unused variable warning.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176218 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 87c1534..aca0915 100644 --- a/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -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::SelectAllBasicBlocks(const Function &Fn) { 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::SelectAllBasicBlocks(const Function &Fn) { // 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; |