tree-vectorizer.c (vect_print_dump_info): Print line number when dumping to a file.

* tree-vectorizer.c (vect_print_dump_info): Print line
        number when dumping to a file.
        (vectorize_loops): Add new messages to dump file.

From-SVN: r178507
This commit is contained in:
Ira Rosen 2011-09-04 08:53:43 +00:00 committed by Ira Rosen
parent 917e2efb87
commit 7cd3603bf9
2 changed files with 18 additions and 6 deletions

View File

@ -1,3 +1,9 @@
2011-09-04 Ira Rosen <ira.rosen@linaro.org>
* tree-vectorizer.c (vect_print_dump_info): Print line
number when dumping to a file.
(vectorize_loops): Add new messages to dump file.
2011-09-03 Martin Jambor <mjambor@suse.cz>
* ipa-prop.h (ipa_jump_func_t): New typedef.

View File

@ -149,16 +149,12 @@ vect_print_dump_info (enum vect_verbosity_levels vl)
if (!current_function_decl || !vect_dump)
return false;
if (dump_file)
fprintf (vect_dump, "\n");
else if (vect_location == UNKNOWN_LOC)
if (vect_location == UNKNOWN_LOC)
fprintf (vect_dump, "\n%s:%d: note: ",
DECL_SOURCE_FILE (current_function_decl),
DECL_SOURCE_LINE (current_function_decl));
else
fprintf (vect_dump, "\n%s:%d: note: ",
LOC_FILE (vect_location), LOC_LINE (vect_location));
fprintf (vect_dump, "\n%d: ", LOC_LINE (vect_location));
return true;
}
@ -199,12 +195,22 @@ vectorize_loops (void)
loop_vec_info loop_vinfo;
vect_location = find_loop_location (loop);
if (vect_location != UNKNOWN_LOC
&& vect_verbosity_level > REPORT_NONE)
fprintf (vect_dump, "\nAnalyzing loop at %s:%d\n",
LOC_FILE (vect_location), LOC_LINE (vect_location));
loop_vinfo = vect_analyze_loop (loop);
loop->aux = loop_vinfo;
if (!loop_vinfo || !LOOP_VINFO_VECTORIZABLE_P (loop_vinfo))
continue;
if (vect_location != UNKNOWN_LOC
&& vect_verbosity_level > REPORT_NONE)
fprintf (vect_dump, "\n\nVectorizing loop at %s:%d\n",
LOC_FILE (vect_location), LOC_LINE (vect_location));
vect_transform_loop (loop_vinfo);
num_vectorized_loops++;
}