This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/26420] -ftree-vectorizer-verbose=1 prints unvectorized loops information
- From: "dorit at il dot ibm dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 26 Feb 2006 11:01:07 -0000
- Subject: [Bug tree-optimization/26420] -ftree-vectorizer-verbose=1 prints unvectorized loops information
- References: <bug-26420-10053@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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