Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
llvm-epi-0.8
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
Roger Ferrer
llvm-epi-0.8
Commits
54b582f1
Commit
54b582f1
authored
21 years ago
by
Chris Lattner
Browse files
Options
Downloads
Patches
Plain Diff
Remove the statistics
llvm-svn: 11243
parent
478fac37
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
llvm/lib/VMCore/Type.cpp
+0
-11
0 additions, 11 deletions
llvm/lib/VMCore/Type.cpp
with
0 additions
and
11 deletions
llvm/lib/VMCore/Type.cpp
+
0
−
11
View file @
54b582f1
...
@@ -17,15 +17,9 @@
...
@@ -17,15 +17,9 @@
#include
"Support/DepthFirstIterator.h"
#include
"Support/DepthFirstIterator.h"
#include
"Support/StringExtras.h"
#include
"Support/StringExtras.h"
#include
"Support/STLExtras.h"
#include
"Support/STLExtras.h"
#include
"Support/Statistic.h"
#include
<algorithm>
#include
<algorithm>
using
namespace
llvm
;
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
// 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
// created and later destroyed, all in an effort to make sure that there is only
// a single canonical version of a type.
// a single canonical version of a type.
...
@@ -657,8 +651,6 @@ public:
...
@@ -657,8 +651,6 @@ public:
}
}
}
else
{
}
else
{
++
NumSlowTypes
;
// Now we check to see if there is an existing entry in the table which is
// 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
// structurally identical to the newly refined type. If so, this type
// gets refined to the pre-existing type.
// gets refined to the pre-existing type.
...
@@ -667,11 +659,8 @@ public:
...
@@ -667,11 +659,8 @@ public:
tie
(
I
,
E
)
=
TypesByHash
.
equal_range
(
TypeHash
);
tie
(
I
,
E
)
=
TypesByHash
.
equal_range
(
TypeHash
);
Entry
=
E
;
Entry
=
E
;
for
(;
I
!=
E
;
++
I
)
{
for
(;
I
!=
E
;
++
I
)
{
++
NumTypeEqualsCalls
;
if
(
I
->
second
!=
Ty
)
{
if
(
I
->
second
!=
Ty
)
{
if
(
TypesEqual
(
Ty
,
I
->
second
))
{
if
(
TypesEqual
(
Ty
,
I
->
second
))
{
++
NumTypeEquals
;
assert
(
Ty
->
isAbstract
()
&&
"Replacing a non-abstract type?"
);
assert
(
Ty
->
isAbstract
()
&&
"Replacing a non-abstract type?"
);
TypeClass
*
NewTy
=
cast
<
TypeClass
>
((
Type
*
)
I
->
second
.
get
());
TypeClass
*
NewTy
=
cast
<
TypeClass
>
((
Type
*
)
I
->
second
.
get
());
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment