This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/58134] -ftree-vectorizer-verbose=<n> shows vectroiyed loops only for N== 1 and N >2 but not for N==2
- From: "burnus at gcc dot gnu.org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Mon, 12 Aug 2013 18:00:38 +0000
- Subject: [Bug middle-end/58134] -ftree-vectorizer-verbose=<n> shows vectroiyed loops only for N== 1 and N >2 but not for N==2
- Auto-submitted: auto-generated
- References: <bug-58134-4 at http dot gcc dot gnu dot org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58134
--- Comment #1 from Tobias Burnus <burnus at gcc dot gnu.org> ---
The reason is the following:
dump_printf_loc (MSG_OPTIMIZED_LOCATIONS, vect_location,
"Vectorized loop\n");
And in opts-global.c's dump_remap_tree_vectorizer_verbose:
switch (value)
{
case 0:
break;
case 1:
remapped_opt_info = "optimized";
break;
case 2:
remapped_opt_info = "missed";
break;
default:
remapped_opt_info = "all";
break;
}
And dumpfile.h:
#define MSG_OPTIMIZED_LOCATIONS (1 << 26) /* -fopt-info optimized sources */
#define MSG_MISSED_OPTIMIZATION (1 << 27) /* missed opportunities */
#define MSG_NOTE (1 << 28) /* general optimization info */
#define MSG_ALL (MSG_OPTIMIZED_LOCATIONS | MSG_MISSED_OPTIMIZATION \
| MSG_NOTE)