aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore/Type.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2004-02-09 21:01:23 +0000
committerChris Lattner <sabre@nondot.org>2004-02-09 21:01:23 +0000
commita44fb0d3621aa818819a074d54d0e9e88fd51967 (patch)
treea3859c9c4b0bdf15e335dca9bb465e3be314b053 /lib/VMCore/Type.cpp
parentc3b5849e92a92794939b11a8503a67068372852a (diff)
downloadexternal_llvm-a44fb0d3621aa818819a074d54d0e9e88fd51967.zip
external_llvm-a44fb0d3621aa818819a074d54d0e9e88fd51967.tar.gz
external_llvm-a44fb0d3621aa818819a074d54d0e9e88fd51967.tar.bz2
Remove the statistics
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11243 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/Type.cpp')
-rw-r--r--lib/VMCore/Type.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/VMCore/Type.cpp b/lib/VMCore/Type.cpp
index 11b3450..9a40457 100644
--- a/lib/VMCore/Type.cpp
+++ b/lib/VMCore/Type.cpp
@@ -17,15 +17,9 @@
#include "Support/DepthFirstIterator.h"
#include "Support/StringExtras.h"
#include "Support/STLExtras.h"
-#include "Support/Statistic.h"
#include <algorithm>
-
using namespace llvm;
-static Statistic<> NumSlowTypes("type", "num slow types");
-static Statistic<> NumTypeEqualsCalls("type", "num typeequals calls");
-static Statistic<> NumTypeEquals("type", "num types actually equal");
-
// DEBUG_MERGE_TYPES - Enable this #define to see how and when derived types are
// created and later destroyed, all in an effort to make sure that there is only
// a single canonical version of a type.
@@ -657,8 +651,6 @@ public:
}
} else {
- ++NumSlowTypes;
-
// Now we check to see if there is an existing entry in the table which is
// structurally identical to the newly refined type. If so, this type
// gets refined to the pre-existing type.
@@ -667,11 +659,8 @@ public:
tie(I, E) = TypesByHash.equal_range(TypeHash);
Entry = E;
for (; I != E; ++I) {
- ++NumTypeEqualsCalls;
if (I->second != Ty) {
if (TypesEqual(Ty, I->second)) {
- ++NumTypeEquals;
-
assert(Ty->isAbstract() && "Replacing a non-abstract type?");
TypeClass *NewTy = cast<TypeClass>((Type*)I->second.get());