re PR middle-end/58134 (-ftree-vectorizer-verbose=<n> shows vectorized loops only for N== 1 and N >2 but not for N==2)

2013-10-30  Sharad Singhai  <singhai@google.com>

	PR middle-end/58134
	* opts.c (common_handle_option): Remove deprecated option
	-ftree-vectorizer-verbose.
	* doc/invoke.texi (Debugging Options): Ditto.
	* opts-global.c (handle_common_deferred_options): Ditto.
	(dump_remap_tree_vectorizer_verbose): Delete.
	* common.opt: Set -ftree-vectorizer-verbose as an ignored option.

ada/ChangeLog
	* gnat_ugn.texi: Remove option description for PR middle-end/58134.

From-SVN: r204244
This commit is contained in:
Sharad Singhai 2013-10-31 01:01:40 +00:00 committed by Sharad Singhai
parent 4bbd2ea80f
commit 477e804b72
7 changed files with 16 additions and 70 deletions

View File

@ -1,3 +1,13 @@
2013-10-30 Sharad Singhai <singhai@google.com>
PR middle-end/58134
* opts.c (common_handle_option): Remove deprecated option
-ftree-vectorizer-verbose.
* doc/invoke.texi (Debugging Options): Ditto.
* opts-global.c (handle_common_deferred_options): Ditto.
(dump_remap_tree_vectorizer_verbose): Delete.
* common.opt: Set -ftree-vectorizer-verbose as an ignored option.
2013-10-30 DJ Delorie <dj@redhat.com>
* config/rx/rx.c (ADD_RX_BUILTIN0): New macro, used for builtins

View File

@ -1,3 +1,7 @@
2013-10-30 Sharad Singhai <singhai@google.com>
* gnat_ugn.texi: Remove option description for PR middle-end/58134.
2013-10-29 David Malcolm <dmalcolm@redhat.com>
* gcc-interface/trans.c (finalize_nrv): Update for conversion of

View File

@ -10696,11 +10696,6 @@ preferably to other optimizations by means of pragma @code{Loop_Optimize}:
placed immediately within the loop will convey the appropriate hint to the
compiler for this loop.
You can obtain information about the vectorization performed by the compiler
by specifying @option{-ftree-vectorizer-verbose=N}. For more details of
this switch, see @ref{Debugging Options,,Options for Debugging Your Program
or GCC, gcc, Using the GNU Compiler Collection (GCC)}.
@node Other Optimization Switches
@subsection Other Optimization Switches
@cindex Optimization Switches

View File

@ -2276,8 +2276,8 @@ Common Report Var(flag_tree_vectorize) Optimization
Enable vectorization on trees
ftree-vectorizer-verbose=
Common RejectNegative Joined UInteger Var(common_deferred_options) Defer
-ftree-vectorizer-verbose=<number> This switch is deprecated. Use -fopt-info instead.
Common Joined RejectNegative Ignore
Does nothing. Preserved for backward compatibility.
ftree-loop-vectorize
Common Report Var(flag_tree_loop_vectorize) Optimization

View File

@ -321,7 +321,6 @@ Objective-C and Objective-C++ Dialects}.
-fdump-tree-fre@r{[}-@var{n}@r{]} @gol
-fdump-tree-vtable-verify @gol
-fdump-tree-vrp@r{[}-@var{n}@r{]} @gol
-ftree-vectorizer-verbose=@var{n} @gol
-fdump-tree-storeccp@r{[}-@var{n}@r{]} @gol
-fdump-final-insns=@var{file} @gol
-fcompare-debug@r{[}=@var{opts}@r{]} -fcompare-debug-second @gol
@ -6361,24 +6360,6 @@ the first option takes effect and the subsequent options are
ignored. Thus only the @file{vec.miss} is produced which cotaints
dumps from the vectorizer about missed opportunities.
@item -ftree-vectorizer-verbose=@var{n}
@opindex ftree-vectorizer-verbose
This option is deprecated and is implemented in terms of
@option{-fopt-info}. Please use @option{-fopt-info-@var{kind}} form
instead, where @var{kind} is one of the valid opt-info options. It
prints additional optimization information. For @var{n}=0 no
diagnostic information is reported. If @var{n}=1 the vectorizer
reports each loop that got vectorized, and the total number of loops
that got vectorized. If @var{n}=2 the vectorizer reports locations
which could not be vectorized and the reasons for those. For any
higher verbosity levels all the analysis and transformation
information from the vectorizer is reported.
Note that the information output by @option{-ftree-vectorizer-verbose}
option is sent to @file{stderr}. If the equivalent form
@option{-fopt-info-@var{options}=@var{filename}} is used then the
output is sent into @var{filename} instead.
@item -frandom-seed=@var{string}
@opindex frandom-seed
This option provides a seed that GCC uses in place of

View File

@ -232,40 +232,6 @@ read_cmdline_options (struct gcc_options *opts, struct gcc_options *opts_set,
}
}
/* Handle -ftree-vectorizer-verbose=ARG by remapping it to -fopt-info.
It remaps the old verbosity values as following:
REPORT_NONE ==> No dump is output
REPORT_VECTORIZED_LOCATIONS ==> "-optimized"
REPORT_UNVECTORIZED_LOCATIONS ==> "-missed"
Any higher verbosity levels get mapped to "-all" flags. */
static void
dump_remap_tree_vectorizer_verbose (const char *arg)
{
int value = atoi (arg);
const char *remapped_opt_info = NULL;
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;
}
if (remapped_opt_info)
opt_info_switch_p (remapped_opt_info);
}
/* Language mask determined at initialization. */
static unsigned int initial_lang_mask;
@ -456,10 +422,6 @@ handle_common_deferred_options (void)
stack_limit_rtx = gen_rtx_SYMBOL_REF (Pmode, ggc_strdup (opt->arg));
break;
case OPT_ftree_vectorizer_verbose_:
dump_remap_tree_vectorizer_verbose (opt->arg);
break;
default:
gcc_unreachable ();
}

View File

@ -1788,12 +1788,6 @@ common_handle_option (struct gcc_options *opts,
opts->x_flag_stack_usage_info = value != 0;
break;
case OPT_ftree_vectorizer_verbose_:
/* -ftree-vectorizer-verbose is deprecated. It is defined in
-terms of fopt-info=N. */
/* Deferred. */
break;
case OPT_g:
set_debug_level (NO_DEBUG, DEFAULT_GDB_EXTENSIONS, arg, opts, opts_set,
loc);