aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-ccp.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2004-06-10 22:37:05 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2004-06-10 18:37:05 -0400
commit95a3742c4876d496fb2f198b6f94c0b1a33b5ceb (patch)
treef3e7c5ed70989e5440f3ec4150aca5517dd053b3 /gcc/tree-ssa-ccp.c
parenta72967cd5d574694af7abb943c237a8960eabbab (diff)
downloadgcc-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-ccp.c')
-rw-r--r--gcc/tree-ssa-ccp.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/tree-ssa-ccp.c b/gcc/tree-ssa-ccp.c
index 4f5612b..98c0497 100644
--- a/gcc/tree-ssa-ccp.c
+++ b/gcc/tree-ssa-ccp.c
@@ -1120,11 +1120,11 @@ initialize (void)
bb_in_list = sbitmap_alloc (last_basic_block);
sbitmap_zero (bb_in_list);
- value_vector = (value *) xmalloc (highest_ssa_version * sizeof (value));
- memset (value_vector, 0, highest_ssa_version * sizeof (value));
+ value_vector = (value *) xmalloc (num_ssa_names * sizeof (value));
+ memset (value_vector, 0, num_ssa_names * sizeof (value));
/* 1 if ssa variable is used in a virtual variable context. */
- virtual_var = sbitmap_alloc (highest_ssa_version);
+ virtual_var = sbitmap_alloc (num_ssa_names);
sbitmap_zero (virtual_var);
/* Initialize default values and simulation flags for PHI nodes, statements