From f2b60e4039b662779ffc4a59eacb186b5b821cd6 Mon Sep 17 00:00:00 2001 From: Ira Rosen Date: Tue, 30 Nov 2004 14:40:38 +0000 Subject: re PR tree-optimization/18607 (Vectorizer: data_reference is overwritten in vect_analyze_data_refs) 2004-11-30 Ira Rosen PR tree-opt/18607 * tree-vectorizer.c (vect_analyze_data_refs): Use temporary variable for data_reference when looking for memtag. From-SVN: r91521 --- gcc/tree-vectorizer.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gcc/tree-vectorizer.c') diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c index 7aa6175..0f49a32 100644 --- a/gcc/tree-vectorizer.c +++ b/gcc/tree-vectorizer.c @@ -4899,7 +4899,7 @@ vect_analyze_data_refs (loop_vec_info loop_vinfo) int nbbs = loop->num_nodes; block_stmt_iterator si; int j; - struct data_reference *dr; + struct data_reference *dr, *tmp_dr; tree tag; tree address_base; bool base_aligned_p; @@ -5013,9 +5013,9 @@ vect_analyze_data_refs (loop_vec_info loop_vinfo) switch (TREE_CODE (address_base)) { case ARRAY_REF: - dr = analyze_array (stmt, TREE_OPERAND (symbl, 0), - DR_IS_READ(dr)); - tag = vect_get_base_and_bit_offset (dr, DR_BASE_NAME (dr), + tmp_dr = analyze_array (stmt, TREE_OPERAND (symbl, 0), + DR_IS_READ (tmp_dr)); + tag = vect_get_base_and_bit_offset (tmp_dr, DR_BASE_NAME (tmp_dr), NULL_TREE, loop_vinfo, &offset, &base_aligned_p); if (!tag) { -- cgit v1.1