From 12c697cd044562794c83205e4ac9f6bbab6ae5ee Mon Sep 17 00:00:00 2001 From: jakub Date: Thu, 8 Jan 2009 16:01:42 +0000 Subject: PR tree-optimization/37031 * lambda-code.c (lambda_collect_parameters): Call pointer_set_destroy on parameter_set. (build_access_matrix): Reserve correct size for AM_MATRIX vector, allocate it using gc instead of heap, use VEC_quick_push instead of VEC_safe_push. * graphite.c (build_access_matrix): Allocate AM_MATRIX vector using gc instead of heap, use VEC_quick_push instead of VEC_safe_push. * tree-data-ref.h (struct access_matrix): Change matrix to gc allocated vector from heap allocated. * lambda.h: Add DEF_VEC_ALLOC_P for gc allocated lambda_vector. * tree-loop-linear.c (linear_transform_loops): Allocate nest vector only after perfect_loop_nest_depth call. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@143188 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/graphite.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/graphite.c') diff --git a/gcc/graphite.c b/gcc/graphite.c index c90ba960903..27cadf3340d 100644 --- a/gcc/graphite.c +++ b/gcc/graphite.c @@ -1,5 +1,5 @@ /* Gimple Represented as Polyhedra. - Copyright (C) 2006, 2007, 2008 Free Software Foundation, Inc. + Copyright (C) 2006, 2007, 2008, 2009 Free Software Foundation, Inc. Contributed by Sebastian Pop . This file is part of GCC. @@ -3630,7 +3630,7 @@ build_access_matrix (data_reference_p ref, graphite_bb_p gb) int i, ndim = DR_NUM_DIMENSIONS (ref); struct access_matrix *am = GGC_NEW (struct access_matrix); - AM_MATRIX (am) = VEC_alloc (lambda_vector, heap, ndim); + AM_MATRIX (am) = VEC_alloc (lambda_vector, gc, ndim); DR_SCOP (ref) = GBB_SCOP (gb); for (i = 0; i < ndim; i++) @@ -3642,7 +3642,7 @@ build_access_matrix (data_reference_p ref, graphite_bb_p gb) if (!build_access_matrix_with_af (af, v, scop, ref_nb_loops (ref))) return false; - VEC_safe_push (lambda_vector, heap, AM_MATRIX (am), v); + VEC_quick_push (lambda_vector, AM_MATRIX (am), v); } DR_ACCESS_MATRIX (ref) = am; -- cgit v1.2.1