diff options
author | Diego Novillo <dnovillo@redhat.com> | 2004-06-10 22:37:05 +0000 |
---|---|---|
committer | Diego Novillo <dnovillo@gcc.gnu.org> | 2004-06-10 18:37:05 -0400 |
commit | 95a3742c4876d496fb2f198b6f94c0b1a33b5ceb (patch) | |
tree | f3e7c5ed70989e5440f3ec4150aca5517dd053b3 /gcc/tree-ssa-dom.c | |
parent | a72967cd5d574694af7abb943c237a8960eabbab (diff) | |
download | gcc-95a3742c4876d496fb2f198b6f94c0b1a33b5ceb.zip gcc-95a3742c4876d496fb2f198b6f94c0b1a33b5ceb.tar.gz gcc-95a3742c4876d496fb2f198b6f94c0b1a33b5ceb.tar.bz2 |
Makefile.in (tree-ssanames.o): Depend on TREE_FLOW_H.
* Makefile.in (tree-ssanames.o): Depend on TREE_FLOW_H.
* tree-flow.h (ssa_names, num_ssa_names, ssa_name): Declare.
(highest_ssa_version): Remove.
* tree-outof-ssa.c (new_temp_expr_table): Replace
highest_ssa_version with num_ssa_names.
(dump_replaceable_exprs): Likewise.
(rewrite_vars_out_of_ssa): Likewise.
* tree-ssa-ccp.c (initialize): Likewise
* tree-ssa-copyrename.c (rename_ssa_copies): Likewise.
* tree-ssa-dce.c (tree_dce_init): Likewise.
* tree-ssa-dom.c (tree_ssa_dominator_optimize): Likewise.
* tree-ssa-live.c (create_ssa_var_map): Likewise.
(dump_var_map): Likewise.
* tree-ssa.c (verify_ssa): Likewise.
(kill_redundant_phi_nodes): Likewise.
Do not build a local array of SSA_NAMEs. Use the ssa_names table.
* tree-ssanames.c: Include tree-flow.h
(ssa_names): New varray.
(init_ssa_names): Initialize ssa_names.
Reserve the first slot of the ssa_names table.
(make_ssa_name): Push the newly created SSA_NAME into ssa_names.
Assign version numbers using num_ssa_names.
From-SVN: r82950
Diffstat (limited to 'gcc/tree-ssa-dom.c')
-rw-r--r-- | gcc/tree-ssa-dom.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-ssa-dom.c b/gcc/tree-ssa-dom.c index 688de2a..20dbb7b 100644 --- a/gcc/tree-ssa-dom.c +++ b/gcc/tree-ssa-dom.c @@ -553,10 +553,10 @@ tree_ssa_dominator_optimize (void) /* Create our hash tables. */ avail_exprs = htab_create (1024, avail_expr_hash, avail_expr_eq, free); - VARRAY_TREE_INIT (const_and_copies, highest_ssa_version, "const_and_copies"); + VARRAY_TREE_INIT (const_and_copies, num_ssa_names, "const_and_copies"); nonzero_vars = BITMAP_XMALLOC (); VARRAY_EDGE_INIT (redirection_edges, 20, "redirection_edges"); - VARRAY_GENERIC_PTR_INIT (vrp_data, highest_ssa_version, "vrp_data"); + VARRAY_GENERIC_PTR_INIT (vrp_data, num_ssa_names, "vrp_data"); /* Setup callbacks for the generic dominator tree walker. */ walk_data.walk_stmts_backward = false; @@ -625,8 +625,8 @@ tree_ssa_dominator_optimize (void) /* The into SSA translation may have created new SSA_NAMES whic affect the size of CONST_AND_COPIES and VRP_DATA. */ - VARRAY_GROW (const_and_copies, highest_ssa_version); - VARRAY_GROW (vrp_data, highest_ssa_version); + VARRAY_GROW (const_and_copies, num_ssa_names); + VARRAY_GROW (vrp_data, num_ssa_names); } /* Reinitialize the various tables. */ |