aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.c
diff options
context:
space:
mode:
authorIra Rosen <ira.rosen@linaro.org>2011-09-04 08:53:43 +0000
committerIra Rosen <irar@gcc.gnu.org>2011-09-04 08:53:43 +0000
commit7cd3603bf9a67ac0048541cc6698c174136e5a37 (patch)
tree3b34bf185155f7a5ade21452f9ffa8cca80956ef /gcc/tree-vectorizer.c
parent917e2efb87f55a942760974e469bfec0cac01ba5 (diff)
downloadgcc-7cd3603bf9a67ac0048541cc6698c174136e5a37.zip
gcc-7cd3603bf9a67ac0048541cc6698c174136e5a37.tar.gz
gcc-7cd3603bf9a67ac0048541cc6698c174136e5a37.tar.bz2
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
Diffstat (limited to 'gcc/tree-vectorizer.c')
-rw-r--r--gcc/tree-vectorizer.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/gcc/tree-vectorizer.c b/gcc/tree-vectorizer.c
index 2170627..d76fe0c 100644
--- a/gcc/tree-vectorizer.c
+++ b/gcc/tree-vectorizer.c
@@ -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++;
}