diff options
author | Dirk Mueller <dmueller@suse.de> | 2006-11-16 22:07:30 +0000 |
---|---|---|
committer | Dirk Mueller <mueller@gcc.gnu.org> | 2006-11-16 22:07:30 +0000 |
commit | b9eae1a974338734e5dc40a11986716571a99050 (patch) | |
tree | 20a6800e6ec0f98f64180f37d80e0cf6783b98b6 /gcc/tree-ssa-copy.c | |
parent | a9e64c639ef604bfc2d734b3973dfc0953875877 (diff) | |
download | gcc-b9eae1a974338734e5dc40a11986716571a99050.tar.gz |
tree-vrp.c (get_value_range): Use XCNEW instead of XNEW and memset.
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.
From-SVN: r118903
Diffstat (limited to 'gcc/tree-ssa-copy.c')
-rw-r--r-- | gcc/tree-ssa-copy.c | 9 |
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); |