Move the endif to the correct line so we don't have warnings about
authorChandler Carruth <chandlerc@gmail.com>
Wed, 20 Mar 2013 06:47:00 +0000 (06:47 +0000)
committerChandler Carruth <chandlerc@gmail.com>
Wed, 20 Mar 2013 06:47:00 +0000 (06:47 +0000)
unused statistics variables.

llvm-svn: 177494

llvm/lib/Transforms/Scalar/SROA.cpp

index 38c9aea..1a9debf 100644 (file)
@@ -1117,8 +1117,8 @@ AllocaPartitioning::AllocaPartitioning(const DataLayout &TD, AllocaInst &AI)
 #if !defined(NDEBUG) || defined(LLVM_ENABLE_STATS)
   for (unsigned Idx = 0, Size = Uses.size(); Idx != Size; ++Idx)
     NumUses += Uses[Idx].size();
-  NumAllocaPartitionUses += NumUses;
 #endif
+  NumAllocaPartitionUses += NumUses;
   MaxPartitionUsesPerAlloca = std::max<unsigned>(NumUses, MaxPartitionUsesPerAlloca);
 }