Don't increment the counter unless the debug flag is set.
authorReid Spencer <rspencer@reidspencer.com>
Sat, 7 May 2005 04:59:45 +0000 (04:59 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 7 May 2005 04:59:45 +0000 (04:59 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21762 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/IPO/SimplifyLibCalls.cpp

index c92855c1566d8e2e885a52d1042d03efe1cef579..fef058045ee45a35d8cc5218c416c0514d994888 100644 (file)
@@ -111,7 +111,7 @@ public:
 
 #ifndef NDEBUG
   /// @brief Called by SimplifyLibCalls to update the occurrences statistic.
-  void succeeded() { ++occurrences; }
+  void succeeded() { DEBUG(++occurrences); }
 #endif
 
 private: