summaryrefslogtreecommitdiffstats
path: root/llvm/include/Support/SCCIterator.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-08-01 22:12:07 +0000
committerChris Lattner <sabre@nondot.org>2003-08-01 22:12:07 +0000
commit2a5dae05e6637db66b03192ecce1cfadd61e2d0c (patch)
tree12f795127463d788c400d5f16697e028cd7246c3 /llvm/include/Support/SCCIterator.h
parent76884682a83c80d4efd4864db6d84c04c07d8462 (diff)
downloadbcm5719-llvm-2a5dae05e6637db66b03192ecce1cfadd61e2d0c.tar.gz
bcm5719-llvm-2a5dae05e6637db66b03192ecce1cfadd61e2d0c.zip
Including statistics into an anonymous namespace that gets #included into
every file is a bad idea. llvm-svn: 7489
Diffstat (limited to 'llvm/include/Support/SCCIterator.h')
-rw-r--r--llvm/include/Support/SCCIterator.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/llvm/include/Support/SCCIterator.h b/llvm/include/Support/SCCIterator.h
index 4de80f4a849..5fad4ddc47a 100644
--- a/llvm/include/Support/SCCIterator.h
+++ b/llvm/include/Support/SCCIterator.h
@@ -16,7 +16,7 @@
#define SUPPORT_TARJANSCCITERATOR_H
#include "Support/GraphTraits.h"
-#include "Support/Statistic.h"
+#include "Support/Debug.h"
#include "Support/iterator"
#include <vector>
#include <stack>
@@ -56,11 +56,6 @@ struct SCC: public std::vector<typename GT::NodeType*> {
// reverse topological order of the SCC DAG.
//--------------------------------------------------------------------------
-namespace {
- Statistic<> NumSCCs("NumSCCs", "Number of Strongly Connected Components");
- Statistic<> MaxSCCSize("MaxSCCSize", "Size of largest Strongly Connected Component");
-}
-
template<class GraphT, class GT = GraphTraits<GraphT> >
class TarjanSCC_iterator : public forward_iterator<SCC<GraphT, GT>, ptrdiff_t>
{
@@ -152,10 +147,6 @@ class TarjanSCC_iterator : public forward_iterator<SCC<GraphT, GT>, ptrdiff_t>
SCCNodeStack.pop();
nodeVisitNumbers[CurrentSCC.back()] = ~0UL;
} while (CurrentSCC.back() != visitingN);
-
- ++NumSCCs;
- if (CurrentSCC.size() > MaxSCCSize) MaxSCCSize = CurrentSCC.size();
-
return;
}
}
OpenPOWER on IntegriCloud