aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop.c
diff options
context:
space:
mode:
authorSharad Singhai <singhai@google.com>2012-11-01 07:34:44 +0000
committerSharad Singhai <singhai@gcc.gnu.org>2012-11-01 07:34:44 +0000
commit2b4e6bf1d556f89711726eaa02b125ed6f39a82f (patch)
tree47725ebeed1bb76102194e7ca04ca401b8d512ff /gcc/tree-ssa-loop.c
parentc3a76b2f482f048a577cc4251184748d8ef27157 (diff)
downloadgcc-2b4e6bf1d556f89711726eaa02b125ed6f39a82f.zip
gcc-2b4e6bf1d556f89711726eaa02b125ed6f39a82f.tar.gz
gcc-2b4e6bf1d556f89711726eaa02b125ed6f39a82f.tar.bz2
invoke.texi: Update -fopt-info documentation.
2012-11-01 Sharad Singhai <singhai@google.com> * doc/invoke.texi: Update -fopt-info documentation. * dumpfile.c: Move dump_flags here from passes.c. Rename opt_info_options to optinfo_verbosity_options. Add optgroup_options. (dump_files): Add field for optinfo_flags in the static initializer. (dump_register): Handle additional parameter for optgroup_flags. (opt_info_enable_passes): Renamed opt_info_enable_all. Handle optgroup_flags. Fix documentation. (opt_info_switch_p_1): Handle optgroup options. (opt_info_switch_p): Handle optgroup_flags. Warn on multiple files. * dumpfile.h (dump_register): Additional argument for optgroup_flags. All callers updated. (struct dump_file_info): Add field for optgroup_flags. Define OPTGROUP_* flags. * tree-pass.h (struct opt_pass): Add addtional field for optinfo_flags. All opt_pass static initializers updated. * opts-global.c (dump_remap_tree_vectorizer_verbose): Use 'all' instead of 'optall'. (handle_common_deferred_options): Fix typo in error message. * passes.c (register_one_dump_file): Add argument for optgroup_flags. Turn on OPTGROUP_IPA for IPA passes. Move dump_flags from here to dumpfile.c. * statistics.c (statistics_early_init): Use OPTGROUP_NONE in call to dump_register. testsuite/ChangeLog * testsuite/gcc.dg/plugin/selfassign.c: Add opgtroup_flags initializer. * testsuite/gcc.dg/plugin/one_time_plugin.c: Likewise. * testsuite/g++.dg/plugin/selfassign.c: Likewise. * testsuite/g++.dg/plugin/dumb_plugin.c: Likewise. From-SVN: r193061
Diffstat (limited to 'gcc/tree-ssa-loop.c')
-rw-r--r--gcc/tree-ssa-loop.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c
index 6dc64b0..99219b6 100644
--- a/gcc/tree-ssa-loop.c
+++ b/gcc/tree-ssa-loop.c
@@ -47,6 +47,7 @@ struct gimple_opt_pass pass_tree_loop =
{
GIMPLE_PASS,
"loop", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_tree_loop, /* gate */
NULL, /* execute */
NULL, /* sub */
@@ -82,6 +83,7 @@ struct gimple_opt_pass pass_tree_loop_init =
{
GIMPLE_PASS,
"loopinit", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
NULL, /* gate */
tree_ssa_loop_init, /* execute */
NULL, /* sub */
@@ -118,6 +120,7 @@ struct gimple_opt_pass pass_lim =
{
GIMPLE_PASS,
"lim", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_tree_ssa_loop_im, /* gate */
tree_ssa_loop_im, /* execute */
NULL, /* sub */
@@ -154,6 +157,7 @@ struct gimple_opt_pass pass_tree_unswitch =
{
GIMPLE_PASS,
"unswitch", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_tree_ssa_loop_unswitch, /* gate */
tree_ssa_loop_unswitch, /* execute */
NULL, /* sub */
@@ -190,6 +194,7 @@ struct gimple_opt_pass pass_predcom =
{
GIMPLE_PASS,
"pcom", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_tree_predictive_commoning, /* gate */
run_tree_predictive_commoning, /* execute */
NULL, /* sub */
@@ -226,6 +231,8 @@ struct gimple_opt_pass pass_vectorize =
{
GIMPLE_PASS,
"vect", /* name */
+ OPTGROUP_LOOP
+ | OPTGROUP_VEC, /* optinfo_flags */
gate_tree_vectorize, /* gate */
tree_vectorize, /* execute */
NULL, /* sub */
@@ -275,6 +282,7 @@ struct gimple_opt_pass pass_graphite =
{
GIMPLE_PASS,
"graphite0", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_graphite_transforms, /* gate */
NULL, /* execute */
NULL, /* sub */
@@ -294,6 +302,7 @@ struct gimple_opt_pass pass_graphite_transforms =
{
GIMPLE_PASS,
"graphite", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_graphite_transforms, /* gate */
graphite_transforms, /* execute */
NULL, /* sub */
@@ -331,6 +340,7 @@ struct gimple_opt_pass pass_check_data_deps =
{
GIMPLE_PASS,
"ckdd", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_check_data_deps, /* gate */
check_data_deps, /* execute */
NULL, /* sub */
@@ -367,6 +377,7 @@ struct gimple_opt_pass pass_iv_canon =
{
GIMPLE_PASS,
"ivcanon", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_tree_ssa_loop_ivcanon, /* gate */
tree_ssa_loop_ivcanon, /* execute */
NULL, /* sub */
@@ -394,6 +405,7 @@ struct gimple_opt_pass pass_scev_cprop =
{
GIMPLE_PASS,
"sccp", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_scev_const_prop, /* gate */
scev_const_prop, /* execute */
NULL, /* sub */
@@ -428,6 +440,7 @@ struct gimple_opt_pass pass_record_bounds =
{
GIMPLE_PASS,
"*record_bounds", /* name */
+ OPTGROUP_NONE, /* optinfo_flags */
NULL, /* gate */
tree_ssa_loop_bounds, /* execute */
NULL, /* sub */
@@ -466,6 +479,7 @@ struct gimple_opt_pass pass_complete_unroll =
{
GIMPLE_PASS,
"cunroll", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_tree_complete_unroll, /* gate */
tree_complete_unroll, /* execute */
NULL, /* sub */
@@ -512,6 +526,7 @@ struct gimple_opt_pass pass_complete_unrolli =
{
GIMPLE_PASS,
"cunrolli", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_tree_complete_unroll_inner, /* gate */
tree_complete_unroll_inner, /* execute */
NULL, /* sub */
@@ -551,6 +566,7 @@ struct gimple_opt_pass pass_parallelize_loops =
{
GIMPLE_PASS,
"parloops", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_tree_parallelize_loops, /* gate */
tree_parallelize_loops, /* execute */
NULL, /* sub */
@@ -587,6 +603,7 @@ struct gimple_opt_pass pass_loop_prefetch =
{
GIMPLE_PASS,
"aprefetch", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_tree_ssa_loop_prefetch, /* gate */
tree_ssa_loop_prefetch, /* execute */
NULL, /* sub */
@@ -624,6 +641,7 @@ struct gimple_opt_pass pass_iv_optimize =
{
GIMPLE_PASS,
"ivopts", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
gate_tree_ssa_loop_ivopts, /* gate */
tree_ssa_loop_ivopts, /* execute */
NULL, /* sub */
@@ -654,6 +672,7 @@ struct gimple_opt_pass pass_tree_loop_done =
{
GIMPLE_PASS,
"loopdone", /* name */
+ OPTGROUP_LOOP, /* optinfo_flags */
NULL, /* gate */
tree_ssa_loop_done, /* execute */
NULL, /* sub */