From 6775f1f3a749256c99544d13f7ea581edba6a585 Mon Sep 17 00:00:00 2001 From: Ira Rosen Date: Sun, 19 Sep 2004 18:01:51 +0000 Subject: tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field. 2004-09-19 Ira Rosen * tree-vectorizer.h (stmt_vec_info): Add vect_dr_base field. (STMT_VINFO_VECT_DR_BASE): Declare. (VECT_SMODULO): Declare. * tree-vectorizer.c (vect_compute_array_ref_alignment): New function. (vect_compute_array_base_alignment): New function. (vect_analyze_data_ref_access): Check array indices. Remove one dimensional arrays restriction. (vect_get_ptr_offset): New function. (vect_get_symbl_and_dr): New function. (vect_get_base_and_bit_offset): Support additional data refs. Renamed (former name vect_get_base_decl_and_bit_offset). (vect_create_index_for_array_ref): Removed. (vect_create_index_for_vector_ref): New function. (vect_create_addr_base_for_vector_ref): New function. (vect_create_data_ref): Handle additional data refs. Call vect_create_index_for_vector_ref and vect_create_addr_base_for_vector_ref. (vect_compute_data_ref_alignment): Support the changes. Call vect_get_base_and_bit_offset. (vect_analyze_data_refs): Call vect_get_symbl_and_dr. Support additional data refs. Store vect_dr_base. (vect_analyze_data_ref_accesses): Support nonconstant init. (new_stmt_vec_info): Initialize vect_dr_base field. (vect_is_simple_iv_evolution): Call initial_condition_in_loop_num. (get_vectype_for_scalar_type): Check for BLKmode. * tree-chrec.h (initial_condition_in_loop_num): Declare. * tree-chrec.c (initial_condition_in_loop_num): New function. (chrec_component_in_loop_num): New function. (evolution_part_in_loop_num): Call chrec_component_in_loop_num. * tree-data-ref.c (analyze_array_indexes): Change parameter (access_fns) to be pointer to varray_type. From-SVN: r87731 --- gcc/tree-data-ref.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/tree-data-ref.c') diff --git a/gcc/tree-data-ref.c b/gcc/tree-data-ref.c index 3436c3d33d2..8e062d074b4 100644 --- a/gcc/tree-data-ref.c +++ b/gcc/tree-data-ref.c @@ -498,7 +498,7 @@ dump_data_dependence_direction (FILE *file, static tree analyze_array_indexes (struct loop *loop, - varray_type access_fns, + varray_type *access_fns, tree ref) { tree opnd0, opnd1; @@ -514,7 +514,7 @@ analyze_array_indexes (struct loop *loop, access_fn = instantiate_parameters (loop, analyze_scalar_evolution (loop, opnd1)); - VARRAY_PUSH_TREE (access_fns, access_fn); + VARRAY_PUSH_TREE (*access_fns, access_fn); /* Recursively record other array access functions. */ if (TREE_CODE (opnd0) == ARRAY_REF) @@ -549,7 +549,7 @@ analyze_array (tree stmt, tree ref, bool is_read) DR_REF (res) = ref; VARRAY_TREE_INIT (DR_ACCESS_FNS (res), 3, "access_fns"); DR_BASE_NAME (res) = analyze_array_indexes - (loop_containing_stmt (stmt), DR_ACCESS_FNS (res), ref); + (loop_containing_stmt (stmt), &(DR_ACCESS_FNS (res)), ref); DR_IS_READ (res) = is_read; if (dump_file && (dump_flags & TDF_DETAILS)) -- cgit v1.2.1