diff options
author | Matt Austern <austern@apple.com> | 2004-10-14 23:15:29 +0000 |
---|---|---|
committer | Matt Austern <austern@gcc.gnu.org> | 2004-10-14 23:15:29 +0000 |
commit | 0c58f841a52644c9845b3c136f3264e6a728ba76 (patch) | |
tree | 13188816247ecd269d6b10ee75c260da51a89ff6 /gcc/langhooks.c | |
parent | 5d1b2a1e421e770aba056e6b1405ed0eb29d29eb (diff) | |
download | gcc-0c58f841a52644c9845b3c136f3264e6a728ba76.zip gcc-0c58f841a52644c9845b3c136f3264e6a728ba76.tar.gz gcc-0c58f841a52644c9845b3c136f3264e6a728ba76.tar.bz2 |
Speed up walk_tree by introducing a special-purpose hash table.
* pointer-set.c: New file, special-purpose hash table.
* pointer-set.h: New file.
* tree.h (struct pointer_set_t): Declare as opaque type.
(tree_walk): Last argument is pointer_set_t* now.
* tree-inline.c (WALK_SUBTREE): Convert from htab to pset.
(walk_type_fields):
(walk_tree): Convert from htab_t to pointer_set_t for keeping
track of which nodes have already been visited.
(walk_tree_without_duplicates): Convert from htab_t to pointer_set_t.
* cgraphunit.c (cgraph_create_edges): Likewise.
(cgraph_characterize_statics_local): Likewise.
* tree-dfa.c (collect_dfa_stats): Likewise.
* langhooks-def.h (lhd_tree_inlining_walk_subtrees): Last arg is
pointer_set_t* now.
* langhooks.c (lhd_tree_inlining_walk_subtrees): Likewise.
* langhooks.h (struct lang_hooks_for_tree_inlining): Last arg type
of walk_subtrees is pointer_set_t* now.
* Makefile.in (OBJS-common): add pointer-set.o
(tree-inline.o): Depends on pointer-set.h
(tree-dfa.o): Likewise
(cgraphunit.o): Likewise
* cp/Make-lang.in (pt.o): depends on pointer-set.h
* cp/cp-tree.h (cp_walk_subtrees): Last argument is pointer_set_t* now.
* cp/pt.c (struct pair_fn_data): Use pointer_set_t, not htab_t
(for_each_template_parm): Convert from htab_t to pointer_set_t.
* cp/tree.c (cp_walk_subtrees): Last argument is pointer_set_t* now.
* java/lang.c (java_tree_inlining_walk_subtrees): Last arg is struct
pointer_set_t* now.
From-SVN: r89062
Diffstat (limited to 'gcc/langhooks.c')
-rw-r--r-- | gcc/langhooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/langhooks.c b/gcc/langhooks.c index 199c93e..0cf31be 100644 --- a/gcc/langhooks.c +++ b/gcc/langhooks.c @@ -298,7 +298,7 @@ lhd_tree_inlining_walk_subtrees (tree *tp ATTRIBUTE_UNUSED, int *subtrees ATTRIBUTE_UNUSED, walk_tree_fn func ATTRIBUTE_UNUSED, void *data ATTRIBUTE_UNUSED, - void *htab ATTRIBUTE_UNUSED) + struct pointer_set_t *pset ATTRIBUTE_UNUSED) { return NULL_TREE; } |