From 540f6bda9926d60d7691fc4a21fe78338b450952 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Wed, 28 May 2008 13:54:05 +0000 Subject: re PR tree-optimization/36291 (GCC is slow and memory-hungry building sipQtGuipart.cpp) 2008-05-28 Richard Guenther PR tree-optimization/36291 * tree-flow. h (struct gimple_df): Remove var_anns member. * tree-flow-inline.h (gimple_var_anns): Remove. (var_ann): Simplify. * tree-dfa.c (create_var_ann): Simplify. (remove_referenced_var): Clear alias info from var_anns of globals. * tree-ssa.c (init_tree_ssa): Do not allocate var_anns. (delete_tree_ssa): Clear alias info from var_anns of globals. Do not free var_anns. (var_ann_eq): Remove. (var_ann_hash): Likewise. From-SVN: r136095 --- gcc/tree-flow-inline.h | 27 +++------------------------ 1 file changed, 3 insertions(+), 24 deletions(-) (limited to 'gcc/tree-flow-inline.h') diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index a41ee9a..95ddfb5 100644 --- a/gcc/tree-flow-inline.h +++ b/gcc/tree-flow-inline.h @@ -91,14 +91,6 @@ gimple_nonlocal_all (const struct function *fun) return fun->gimple_df->nonlocal_all; } -/* Hashtable of variables annotations. Used for static variables only; - local variables have direct pointer in the tree node. */ -static inline htab_t -gimple_var_anns (const struct function *fun) -{ - return fun->gimple_df->var_anns; -} - /* Initialize the hashtable iterator HTI to point to hashtable TABLE */ static inline void * @@ -192,22 +184,9 @@ var_ann (const_tree t) { var_ann_t ann; - if (!MTAG_P (t) - && (TREE_STATIC (t) || DECL_EXTERNAL (t))) - { - struct static_var_ann_d *sann - = ((struct static_var_ann_d *) - htab_find_with_hash (gimple_var_anns (cfun), t, DECL_UID (t))); - if (!sann) - return NULL; - ann = &sann->ann; - } - else - { - if (!t->base.ann) - return NULL; - ann = (var_ann_t) t->base.ann; - } + if (!t->base.ann) + return NULL; + ann = (var_ann_t) t->base.ann; gcc_assert (ann->common.type == VAR_ANN); -- cgit v1.1