tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid uninitialized variable.

2004-11-30  Nathan Sidwell  <nathan@codesourcery.com>

        * tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
        uninitialized variable.

From-SVN: r91543
This commit is contained in:
Nathan Sidwell 2004-11-30 23:28:54 +00:00 committed by Andrew Pinski
parent d7d05b864b
commit c21accc5d9
2 changed files with 25 additions and 12 deletions

View File

@ -1,3 +1,8 @@
2004-11-30 Nathan Sidwell <nathan@codesourcery.com>
* tree-vectorizer.c (vect_analyze_data_refs): Reformat and avoid
uninitialized variable.
2004-11-30 Eric Christopher <echristo@redhat.com>
* fold-const.c (fold_widened_comparison): Make sure that we're

View File

@ -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, *tmp_dr;
struct data_reference *dr;
tree tag;
tree address_base;
bool base_aligned_p;
@ -5013,17 +5013,25 @@ vect_analyze_data_refs (loop_vec_info loop_vinfo)
switch (TREE_CODE (address_base))
{
case ARRAY_REF:
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)
{
if (vect_debug_stats (loop) || vect_debug_details (loop))
fprintf (dump_file, "not vectorized: no memtag for ref.");
return false;
}
STMT_VINFO_MEMTAG (stmt_info) = tag;
{
struct data_reference *tmp_dr;
tmp_dr = analyze_array (stmt, TREE_OPERAND (symbl, 0),
DR_IS_READ (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)
{
if (vect_debug_stats (loop)
|| vect_debug_details (loop))
fprintf (dump_file,
"not vectorized: no memtag for ref.");
return false;
}
STMT_VINFO_MEMTAG (stmt_info) = tag;
}
break;
case VAR_DECL: