summaryrefslogtreecommitdiff
path: root/gcc/tree-vectorizer.c
diff options
context:
space:
mode:
authorirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-04 08:53:43 +0000
committerirar <irar@138bc75d-0d04-0410-961f-82ee72b054a4>2011-09-04 08:53:43 +0000
commit87a658a68451e1c6a61b99d8fa39f61de033a43a (patch)
tree3b34bf185155f7a5ade21452f9ffa8cca80956ef /gcc/tree-vectorizer.c
parent9cca0040fea3b44d743abf4a962a072cd966e6cf (diff)
downloadgcc-87a658a68451e1c6a61b99d8fa39f61de033a43a.tar.gz
* tree-vectorizer.c (vect_print_dump_info): Print line
number when dumping to a file. (vectorize_loops): Add new messages to dump file. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@178507 138bc75d-0d04-0410-961f-82ee72b054a4
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 2170627483e..d76fe0c3e84 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++;
}