summaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-copy.c
diff options
context:
space:
mode:
authormueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-16 22:07:30 +0000
committermueller <mueller@138bc75d-0d04-0410-961f-82ee72b054a4>2006-11-16 22:07:30 +0000
commit43959b95a6a965a1164c227dbab8e47fd60db7b1 (patch)
tree20a6800e6ec0f98f64180f37d80e0cf6783b98b6 /gcc/tree-ssa-copy.c
parentfeb12e1fb8ba825742d9af907b1d0fe81b8a223b (diff)
downloadgcc-43959b95a6a965a1164c227dbab8e47fd60db7b1.tar.gz
2006-11-16 Dirk Mueller <dmueller@suse.de>
* tree-vrp.c (get_value_range): Use XCNEW instead of XNEW and memset. (insert_range_assertions): Use XCNEWVEC instead of XNEWVEC and memset. (vrp_initialize): Same. (vrp_finalize): Same. * tree-ssa-ccp.c (ccp_initialize): Same. * predict.c (tree_bb_level_predictions): Same. * calls.c (expand_call): Same. * tree-ssa-copy.c (init_copy_prop): Same. (fini_copy_prop): Same. * tree-ssa-alias.c (get_ptr_info): Use GGC_CNEW instead of GGC_NEW and memset. * name-lookup.c (begin_scope): Use GGC_CNEW instead of GGC_NEW and memset. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@118903 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-copy.c')
-rw-r--r--gcc/tree-ssa-copy.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/gcc/tree-ssa-copy.c b/gcc/tree-ssa-copy.c
index f1b67b5bf2a..43172d78e4e 100644
--- a/gcc/tree-ssa-copy.c
+++ b/gcc/tree-ssa-copy.c
@@ -882,11 +882,9 @@ init_copy_prop (void)
{
basic_block bb;
- copy_of = XNEWVEC (prop_value_t, num_ssa_names);
- memset (copy_of, 0, num_ssa_names * sizeof (*copy_of));
+ copy_of = XCNEWVEC (prop_value_t, num_ssa_names);
- cached_last_copy_of = XNEWVEC (tree, num_ssa_names);
- memset (cached_last_copy_of, 0, num_ssa_names * sizeof (*cached_last_copy_of));
+ cached_last_copy_of = XCNEWVEC (tree, num_ssa_names);
FOR_EACH_BB (bb)
{
@@ -954,8 +952,7 @@ fini_copy_prop (void)
/* Set the final copy-of value for each variable by traversing the
copy-of chains. */
- tmp = XNEWVEC (prop_value_t, num_ssa_names);
- memset (tmp, 0, num_ssa_names * sizeof (*tmp));
+ tmp = XCNEWVEC (prop_value_t, num_ssa_names);
for (i = 1; i < num_ssa_names; i++)
{
tree var = ssa_name (i);