diff options
author | Ira Rosen <irar@il.ibm.com> | 2004-11-30 14:40:38 +0000 |
---|---|---|
committer | Dorit Nuzman <dorit@gcc.gnu.org> | 2004-11-30 14:40:38 +0000 |
commit | f2b60e4039b662779ffc4a59eacb186b5b821cd6 (patch) | |
tree | 145401d23e39193da659af0881fee2965fca8448 /gcc/tree-vectorizer.c | |
parent | 1b3c8f4655e63309012ab8054699b47d9b64b9fe (diff) | |
download | gcc-f2b60e4039b662779ffc4a59eacb186b5b821cd6.zip gcc-f2b60e4039b662779ffc4a59eacb186b5b821cd6.tar.gz gcc-f2b60e4039b662779ffc4a59eacb186b5b821cd6.tar.bz2 |
re PR tree-optimization/18607 (Vectorizer: data_reference is overwritten in vect_analyze_data_refs)
2004-11-30 Ira Rosen <irar@il.ibm.com>
PR tree-opt/18607
* tree-vectorizer.c (vect_analyze_data_refs): Use temporary
variable for data_reference when looking for memtag.
From-SVN: r91521
Diffstat (limited to 'gcc/tree-vectorizer.c')
-rw-r--r-- | gcc/tree-vectorizer.c | 8 |
1 files changed, 4 insertions, 4 deletions
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) { |