diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-28 13:54:05 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-05-28 13:54:05 +0000 |
commit | dd7b938735f3f24ad592ed50b7baa87e2c1253d5 (patch) | |
tree | bbf97b3fc675101df94246164a86835ad4504952 /gcc/tree-flow-inline.h | |
parent | ebf835849bdc9691607645e0d5e7462772bd2a89 (diff) | |
download | gcc-dd7b938735f3f24ad592ed50b7baa87e2c1253d5.tar.gz |
2008-05-28 Richard Guenther <rguenther@suse.de>
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@136095 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-flow-inline.h')
-rw-r--r-- | gcc/tree-flow-inline.h | 27 |
1 files changed, 3 insertions, 24 deletions
diff --git a/gcc/tree-flow-inline.h b/gcc/tree-flow-inline.h index a41ee9ac2eb..95ddfb5b130 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); |