From 128aaeedf407def236eefa58efa18327e81b72eb Mon Sep 17 00:00:00 2001 From: Richard Biener <rguenth@gcc.gnu.org> Date: Tue, 7 Dec 2010 16:35:24 +0000 Subject: [PATCH] tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Reset alignment information. 2010-12-07 Richard Guenther <rguenther@suse.de> * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref): Reset alignment information. (bump_vector_ptr): Likewise. From-SVN: r167556 --- gcc/tree-vect-data-refs.c | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/gcc/tree-vect-data-refs.c b/gcc/tree-vect-data-refs.c index 2c92c37bcce5..9a94df4b7f74 100644 --- a/gcc/tree-vect-data-refs.c +++ b/gcc/tree-vect-data-refs.c @@ -2918,7 +2918,14 @@ vect_create_addr_base_for_vector_ref (gimple stmt, if (DR_PTR_INFO (dr) && TREE_CODE (vec_stmt) == SSA_NAME) - duplicate_ssa_name_ptr_info (vec_stmt, DR_PTR_INFO (dr)); + { + duplicate_ssa_name_ptr_info (vec_stmt, DR_PTR_INFO (dr)); + if (offset) + { + SSA_NAME_PTR_INFO (vec_stmt)->align = 1; + SSA_NAME_PTR_INFO (vec_stmt)->misalign = 0; + } + } if (vect_print_dump_info (REPORT_DETAILS)) { @@ -3308,7 +3315,11 @@ bump_vector_ptr (tree dataref_ptr, gimple ptr_incr, gimple_stmt_iterator *gsi, /* Copy the points-to information if it exists. */ if (DR_PTR_INFO (dr)) - duplicate_ssa_name_ptr_info (new_dataref_ptr, DR_PTR_INFO (dr)); + { + duplicate_ssa_name_ptr_info (new_dataref_ptr, DR_PTR_INFO (dr)); + SSA_NAME_PTR_INFO (new_dataref_ptr)->align = 1; + SSA_NAME_PTR_INFO (new_dataref_ptr)->misalign = 0; + } if (!ptr_incr) return new_dataref_ptr; -- GitLab