/* vect_verbosity_level set to an invalid value
to mark that it's uninitialized. */
-static enum verbosity_levels vect_verbosity_level = MAX_VERBOSITY_LEVEL;
-static enum verbosity_levels user_vect_verbosity_level = MAX_VERBOSITY_LEVEL;
+static enum vect_verbosity_levels vect_verbosity_level = MAX_VERBOSITY_LEVEL;
/* Loop or bb location. */
LOC vect_location;
\f
-/* Function vect_set_verbosity_level.
-
- Called from opts.c upon detection of the
- -ftree-vectorizer-verbose=N option. */
-
-void
-vect_set_verbosity_level (const char *val)
-{
- unsigned int vl;
-
- vl = atoi (val);
- if (vl < MAX_VERBOSITY_LEVEL)
- user_vect_verbosity_level = (enum verbosity_levels) vl;
- else
- user_vect_verbosity_level
- = (enum verbosity_levels) (MAX_VERBOSITY_LEVEL - 1);
-}
-
-
/* Function vect_set_dump_settings.
Fix the verbosity level of the vectorizer if the
For vectorization debug dumps. */
bool
-vect_print_dump_info (enum verbosity_levels vl)
+vect_print_dump_info (enum vect_verbosity_levels vl)
{
if (vl > vect_verbosity_level)
return false;
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;
}
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++;
}
0, /* todo_flags_start */
TODO_ggc_collect
| TODO_verify_ssa
- | TODO_dump_func
| TODO_update_ssa
| TODO_verify_stmts /* todo_flags_finish */
}