aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-flow.h
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2004-06-23 20:12:44 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2004-06-23 16:12:44 -0400
commit33c94679bde917193e6af8644598cc85b3df1645 (patch)
tree127e72e0356924b11aaf2aa72a79bae2b3ebc255 /gcc/tree-flow.h
parent881f20cbcdaaed818ceb9f8e99226ac8c77743da (diff)
downloadgcc-33c94679bde917193e6af8644598cc85b3df1645.zip
gcc-33c94679bde917193e6af8644598cc85b3df1645.tar.gz
gcc-33c94679bde917193e6af8644598cc85b3df1645.tar.bz2
Makefile.in (tree-vn.o): New.
* Makefile.in (tree-vn.o): New. (tree-ssa-pre.o): Don't depend on RTL_H. * tree-dfa.c (find_referenced_vars): Don't call init_tree_ssa. * tree-flow.h (struct var_ann_d): Remove field expr_set. (add_to_value, expressions_equal_p, get_value_handle, vn_compute, vn_lookup_or_add, vn_add, vn_lookup, vn_init, vn_delete): Declare. * tree-optimize.c (execute_init_datastructures): New local function. (pass_init_datastructures): New local variable. (init_tree_optimization_passes): Sequence pass_init_datastructures. * tree-pretty-print.c (MASK_POINTER): Remove. (dump_generic_node): Handle VALUE_HANDLE. * tree-ssa-pre.c: Move all value numbering routines to tree-vn.c. Update callers to use new function names. Use VALUE_HANDLE_ID and VALUE_HANDLE_EXPR_SET instead of variable annotations. * tree-ssa.c (init_tree_ssa): Call vn_init. (delete_tree_ssa): Call vn_delete. * tree-vn.c: New file. * tree.c (tree_size): Handle VALUE_HANDLE. (tree_node_structure): Likewise. (iterative_hash_expr): Likewise. * tree.def (VALUE_HANDLE): New code. * tree.h (struct tree_value_handle): New. (VALUE_HANDLE_ID): Define. (VALUE_HANDLE_EXPR_SET): Define. (enum tree_node_structure_enum): Add TS_VALUE_HANDLE. (union tree_node): Add struct tree_value_handle. From-SVN: r83564
Diffstat (limited to 'gcc/tree-flow.h')
-rw-r--r--gcc/tree-flow.h22
1 files changed, 14 insertions, 8 deletions
diff --git a/gcc/tree-flow.h b/gcc/tree-flow.h
index 6ddf72c..e18c1e4 100644
--- a/gcc/tree-flow.h
+++ b/gcc/tree-flow.h
@@ -167,11 +167,6 @@ struct var_ann_d GTY(())
live at the same time and this can happen for each call to the
dominator optimizer. */
tree current_def;
-
- /* The set of expressions represented by this variable if it is a
- value handle. This is used by GVN-PRE. */
- PTR GTY ((skip)) expr_set;
-
};
@@ -576,12 +571,23 @@ extern bool tree_can_throw_internal (tree);
extern bool tree_can_throw_external (tree);
extern void add_stmt_to_eh_region (tree, int);
-/* In tree-ssa-pre.c */
-tree get_value_handle (tree);
-void set_value_handle (tree, tree);
+/* In tree-ssa-pre.c */
+void add_to_value (tree, tree);
void debug_value_expressions (tree);
void print_value_expressions (FILE *, tree);
+
+/* In tree-vn.c */
+bool expressions_equal_p (tree e1, tree e2);
+tree get_value_handle (tree);
+hashval_t vn_compute (tree, hashval_t);
+tree vn_lookup_or_add (tree);
+void vn_add (tree, tree);
+tree vn_lookup (tree);
+void vn_init (void);
+void vn_delete (void);
+
+
/* In tree-sra.c */
void insert_edge_copies (tree stmt, basic_block bb);