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-outof-ssa.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-outof-ssa.c')
-rw-r--r-- | gcc/tree-outof-ssa.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-outof-ssa.c b/gcc/tree-outof-ssa.c index eee24c4..3d0ec52 100644 --- a/gcc/tree-outof-ssa.c +++ b/gcc/tree-outof-ssa.c @@ -1205,7 +1205,7 @@ new_temp_expr_table (var_map map) t = (temp_expr_table_p) xmalloc (sizeof (struct temp_expr_table_d)); t->map = map; - t->version_info = xcalloc (highest_ssa_version + 1, sizeof (void *)); + t->version_info = xcalloc (num_ssa_names + 1, sizeof (void *)); t->partition_dep_list = xcalloc (num_var_partitions (map) + 1, sizeof (value_expr_p)); @@ -1700,7 +1700,7 @@ dump_replaceable_exprs (FILE *f, tree *expr) tree stmt, var; int x; fprintf (f, "\nReplacing Expressions\n"); - for (x = 0; x < (int)highest_ssa_version + 1; x++) + for (x = 0; x < (int)num_ssa_names + 1; x++) if (expr[x]) { stmt = expr[x]; @@ -2089,7 +2089,7 @@ rewrite_vars_out_of_ssa (bitmap vars) /* Now register partitions for all instances of the variables we are taking out of SSA form. */ - map = init_var_map (highest_ssa_version + 1); + map = init_var_map (num_ssa_names + 1); register_ssa_partitions_for_vars (vars, map); /* Now that we have all the partitions registered, translate the |