------- Comment #2 from dorit at il dot ibm dot com 2006-02-26 11:01 ------- For -ftree-vectorizer-verbose=1 the vectorizer reports each loop that got vectorized, and also the total number of loops that got vectorized, even if that number is zero. If preferable, we can report that 0 loops got vectorized only under -ftree-vectorizer-verbose=2, or higher. The patch below makes the "vectorized 0 loops" be reported for verbosity level 2 and higher. Shall I suggest the patch for mainline?
Index: tree-vectorizer.c =================================================================== *** tree-vectorizer.c (revision 111450) --- tree-vectorizer.c (working copy) *************** vectorize_loops (struct loops *loops) *** 2047,2053 **** num_vectorized_loops++; } ! if (vect_print_dump_info (REPORT_VECTORIZED_LOOPS)) fprintf (vect_dump, "vectorized %u loops in function.\n", num_vectorized_loops); --- 2047,2058 ---- num_vectorized_loops++; } ! if (num_vectorized_loops > 0 ! && vect_print_dump_info (REPORT_VECTORIZED_LOOPS)) ! fprintf (vect_dump, "vectorized %u loops in function.\n", ! num_vectorized_loops); ! else if (num_vectorized_loops == 0 ! && vect_print_dump_info (REPORT_UNVECTORIZED_LOOPS)) fprintf (vect_dump, "vectorized %u loops in function.\n", num_vectorized_loops); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=26420