diff options
author | Jan Hubicka <jh@suse.cz> | 2008-03-19 12:22:40 +0100 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-03-19 11:22:40 +0000 |
commit | 8ddbbcaea4d6a9d33ea49ed09b9a8bd6a35af819 (patch) | |
tree | a92c2b5908ddb433dcfd4848584500d8ec662e1d /gcc/tree-ssa-loop.c | |
parent | 8cb3ee3785019dc4b2566360816f0b83aeea4e2e (diff) | |
download | gcc-8ddbbcaea4d6a9d33ea49ed09b9a8bd6a35af819.tar.gz |
re PR other/35094 (RTL dump file letters hosed and partly undocumented)
* gcc.dg/20050811-2.c: Update dumping flags.
* gcc.dg/sms-2.c: Update dumping flags.
* gcc.dg/var-expand1.c: Update dumping flags.
* gcc.dg/var-expand3.c: Update dumping flags.
* gcc.dg/pr30957-1.c: Update dumping flags.
* gcc.dg/20050811-1.c: Update dumping flags.
* gcc.dg/cpp/cmdlne-dI-M.C: Do not xfail.
* gcc.dg/cpp/cmdlne-dM-M.C: Do not xfail.
PR other/35094
* toplev.c (decode_d_option): Handle all CPP flags.
* tree-vrp.c: Update tree_pass descriptors.
* regrename.c: Update tree_pass descriptors.
* fwprop.c: Update tree_pass descriptors.
* doc/invoke.texi: Remove documentation of dropped -d? flags.
* tree-into-ssa.c: Update tree_pass descriptors.
* tree-dump.c: Update tree_pass descriptors.
* tree-complex.c: Update tree_pass descriptors.
* tree-dump.h: Update tree_pass descriptors.
* see.c: Update tree_pass descriptors.
* cgraphbuild.c: Update tree_pass descriptors.
* tracer.c: Update tree_pass descriptors.
* tree-loop-distribution.c: Update tree_pass descriptors.
* cgraph.c: Update tree_pass descriptors.
* postreload-gcse.c: Update tree_pass descriptors.
* postreload.c: Update tree_pass descriptors.
* tree-ssa-loop-ch.c: Update tree_pass descriptors.
* tree-tailcall.c: Update tree_pass descriptors.
* tree-pass.h (tree_opt_pass): Rename to ...
(opt_pass) ... this one; add "type" field and remove letter field.
(gimple_opt_pass, rtl_opt_pass, simple_ipa_opt_pass): New.
(execute_pass_list, execute_ipa_pass_list, all_passes, all_ipa_passes,
all_lowering_passes): Update declaration.
* ipa-cp.c: Update tree_pass descriptors.
* final.c: Update tree_pass descriptors.
* omp-low.c: Update tree_pass descriptors.
* tree-ssa-dse.c: Update tree_pass descriptors.
* ipa-reference.c: Update tree_pass descriptors.
* tree-ssa-uncprop.c: Update tree_pass descriptors.
* auto-inc-dec.c: Update tree_pass descriptors.
* reorg.c: Update tree_pass descriptors.
* cgraphunit.c: Update tree_pass descriptors.
* tree-ssa-copyrename.c: Update tree_pass descriptors.
* tree-ssa-ccp.c: Update tree_pass descriptors.
* df-core.c: Update tree_pass descriptors.
* mode-switching.c: Update tree_pass descriptors.
* tree-nomudflap.c: Update tree_pass descriptors.
* modulo-sched.c: Update tree_pass descriptors.
* ipa-pure-const.c: Update tree_pass descriptors.
* cse.c: Update tree_pass descriptors.
* web.c: Update tree_pass descriptors.
* tree-stdarg.c: Update tree_pass descriptors.
* tree-ssa-math-opts.c: Update tree_pass descriptors.
* tree-ssa-dom.c: Update tree_pass descriptors.
* tree-nrv.c: Update tree_pass descriptors.
* tree-ssa-alias.c: Update tree_pass descriptors.
* loop-init.c: Update tree_pass descriptors.
* gimple-low.c: Update tree_pass descriptors.
* ipa-inline.c: Update tree_pass descriptors.
* tree-ssa-sink.c: Update tree_pass descriptors.
* global.c: Update tree_pass descriptors.
* ifcvt.c: Update tree_pass descriptors.
* jump.c: Update tree_pass descriptors.
* predict.c: Update tree_pass descriptors.
* tree-ssa-loop.c: Update tree_pass descriptors.
* recog.c: Update tree_pass descriptors.
* dse.c: Update tree_pass descriptors.
* tree-ssa-ifcombine.c: Update tree_pass descriptors.
* tree-eh.c: Update tree_pass descriptors.
* regmove.c: Update tree_pass descriptors.
* local-alloc.c
* function.c: Update tree_pass descriptors.
* tree-vectorizer.c: Update tree_pass descriptors.
* gcse.c: Update tree_pass descriptors.
* ipa-type-escape.c: Update tree_pass descriptors.
* tree-if-conv.c: Update tree_pass descriptors.
* init-regs.c: Update tree_pass descriptors.
* ipa.c: Update tree_pass descriptors.
* tree-ssa-phiopt.c: Update tree_pass descriptors.
* rtl-factoring.c: Update tree_pass descriptors.
* lower-subreg.c: Update tree_pass descriptors.
* bt-load.c: Update tree_pass descriptors.
* tree-dfa.c: Update tree_pass descriptors.
* except.c: Update tree_pass descriptors.
* emit-rtl.c: Update tree_pass descriptors.
* cfgexpand.c: Update tree_pass descriptors.
* tree-cfgcleanup.c: Update tree_pass descriptors.
* cfgcleanup.c: Update tree_pass descriptors.
* tree-ssa-pre.c: Update tree_pass descriptors.
* tree-sra.c: Update tree_pass descriptors.
* tree-mudflap.c: Update tree_pass descriptors.
* tree-ssa-copy.c: Update tree_pass descriptors.
* cfglayout.c: Update tree_pass descriptors.
* tree-ssa-forwprop.c: Update tree_pass descriptors.
* tree-ssa-dce.c: Update tree_pass descriptors.
* tree-ssa.c: Update tree_pass descriptors.
* regclass.c: Update tree_pass descriptors.
* integrate.c: Update tree_pass descriptors.
* tree-optimize.c: Update tree_pass descriptors.
* tree-ssa-phiprop.c: Update tree_pass descriptors.
* tree-object-size.c: Update tree_pass descriptors.
* combine.c: Update tree_pass descriptors.
* tree-outof-ssa.c: Update tree_pass descriptors.
* bb-reorder.c: Update tree_pass descriptors.
* stack-ptr-mod.c: Update tree_pass descriptors.
* var-tracking.c: Update tree_pass descriptors.
* tree-profile.c: Update tree_pass descriptors.
* tree-vect-generic.c: Update tree_pass descriptors.
* reg-stack.c: Update tree_pass descriptors.
* sched-rgn.c: Update tree_pass descriptors.
* tree-ssa-structalias.c: Update tree_pass descriptors.
* tree-cfg.c: Update tree_pass descriptors.
* passes.c (current_pass): Update declaration.
(finish_optimization_passes): Update.
(all_passes, all_ipa_passes, all_lowering_passes): Update declaration.
(register_one_dump_file, register_dump_files_1, next_pass_1):
Update arguments.
(init_optimization_passes): Update handling of new types.
(execute_one_pass, execute_pass_list, execute_ipa_pass_list): Update.
* ipa-struct-reorg.c: Update tree_pass descriptors.
* tree-ssa-reassoc.c: Update tree_pass descriptors.
* combine-stack-adj.c: Update tree_pass descriptors.
* cfgrtl.c: Update tree_pass descriptors.
* dce.c: Update tree_pass descriptors.
* tree-ssanames.c: Update tree_pass descriptors.
From-SVN: r133342
Diffstat (limited to 'gcc/tree-ssa-loop.c')
-rw-r--r-- | gcc/tree-ssa-loop.c | 136 |
1 files changed, 85 insertions, 51 deletions
diff --git a/gcc/tree-ssa-loop.c b/gcc/tree-ssa-loop.c index 3361834f57c..639fb10a393 100644 --- a/gcc/tree-ssa-loop.c +++ b/gcc/tree-ssa-loop.c @@ -55,8 +55,10 @@ gate_tree_loop (void) return flag_tree_loop_optimize != 0; } -struct tree_opt_pass pass_tree_loop = +struct gimple_opt_pass pass_tree_loop = { + { + GIMPLE_PASS, "loop", /* name */ gate_tree_loop, /* gate */ NULL, /* execute */ @@ -68,8 +70,8 @@ struct tree_opt_pass pass_tree_loop = 0, /* properties_provided */ 0, /* properties_destroyed */ TODO_ggc_collect, /* todo_flags_start */ - TODO_dump_func | TODO_verify_ssa | TODO_ggc_collect, /* todo_flags_finish */ - 0 /* letter */ + TODO_dump_func | TODO_verify_ssa | TODO_ggc_collect /* todo_flags_finish */ + } }; /* Loop optimizer initialization. */ @@ -85,8 +87,10 @@ tree_ssa_loop_init (void) return 0; } -struct tree_opt_pass pass_tree_loop_init = +struct gimple_opt_pass pass_tree_loop_init = { + { + GIMPLE_PASS, "loopinit", /* name */ NULL, /* gate */ tree_ssa_loop_init, /* execute */ @@ -98,8 +102,8 @@ struct tree_opt_pass pass_tree_loop_init = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - TODO_dump_func | TODO_verify_loops, /* todo_flags_finish */ - 0 /* letter */ + TODO_dump_func | TODO_verify_loops /* todo_flags_finish */ + } }; /* Loop invariant motion pass. */ @@ -120,8 +124,10 @@ gate_tree_ssa_loop_im (void) return flag_tree_loop_im != 0; } -struct tree_opt_pass pass_lim = +struct gimple_opt_pass pass_lim = { + { + GIMPLE_PASS, "lim", /* name */ gate_tree_ssa_loop_im, /* gate */ tree_ssa_loop_im, /* execute */ @@ -133,8 +139,8 @@ struct tree_opt_pass pass_lim = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - TODO_dump_func | TODO_verify_loops, /* todo_flags_finish */ - 0 /* letter */ + TODO_dump_func | TODO_verify_loops /* todo_flags_finish */ + } }; /* Loop unswitching pass. */ @@ -154,8 +160,10 @@ gate_tree_ssa_loop_unswitch (void) return flag_unswitch_loops != 0; } -struct tree_opt_pass pass_tree_unswitch = +struct gimple_opt_pass pass_tree_unswitch = { + { + GIMPLE_PASS, "unswitch", /* name */ gate_tree_ssa_loop_unswitch, /* gate */ tree_ssa_loop_unswitch, /* execute */ @@ -168,8 +176,8 @@ struct tree_opt_pass pass_tree_unswitch = 0, /* properties_destroyed */ 0, /* todo_flags_start */ TODO_ggc_collect | TODO_dump_func - | TODO_verify_loops, /* todo_flags_finish */ - 0 /* letter */ + | TODO_verify_loops /* todo_flags_finish */ + } }; /* Predictive commoning. */ @@ -190,8 +198,10 @@ gate_tree_predictive_commoning (void) return flag_predictive_commoning != 0; } -struct tree_opt_pass pass_predcom = +struct gimple_opt_pass pass_predcom = { + { + GIMPLE_PASS, "pcom", /* name */ gate_tree_predictive_commoning, /* gate */ run_tree_predictive_commoning, /* execute */ @@ -204,8 +214,8 @@ struct tree_opt_pass pass_predcom = 0, /* properties_destroyed */ 0, /* todo_flags_start */ TODO_dump_func | TODO_verify_loops - | TODO_update_ssa_only_virtuals, /* todo_flags_finish */ - 0 /* letter */ + | TODO_update_ssa_only_virtuals /* todo_flags_finish */ + } }; /* Loop autovectorization. */ @@ -222,8 +232,10 @@ gate_tree_vectorize (void) return flag_tree_vectorize && number_of_loops () > 1; } -struct tree_opt_pass pass_vectorize = +struct gimple_opt_pass pass_vectorize = { + { + GIMPLE_PASS, "vect", /* name */ gate_tree_vectorize, /* gate */ tree_vectorize, /* execute */ @@ -236,8 +248,8 @@ struct tree_opt_pass pass_vectorize = 0, /* properties_destroyed */ TODO_verify_loops, /* todo_flags_start */ TODO_dump_func | TODO_update_ssa - | TODO_ggc_collect, /* todo_flags_finish */ - 0 /* letter */ + | TODO_ggc_collect /* todo_flags_finish */ + } }; /* Loop nest optimizations. */ @@ -258,8 +270,10 @@ gate_tree_linear_transform (void) return flag_tree_loop_linear != 0; } -struct tree_opt_pass pass_linear_transform = +struct gimple_opt_pass pass_linear_transform = { + { + GIMPLE_PASS, "ltrans", /* name */ gate_tree_linear_transform, /* gate */ tree_linear_transform, /* execute */ @@ -273,8 +287,8 @@ struct tree_opt_pass pass_linear_transform = 0, /* todo_flags_start */ TODO_dump_func | TODO_verify_loops | TODO_update_ssa_only_virtuals - | TODO_ggc_collect, /* todo_flags_finish */ - 0 /* letter */ + | TODO_ggc_collect /* todo_flags_finish */ + } }; /* Check the correctness of the data dependence analyzers. */ @@ -295,8 +309,10 @@ gate_check_data_deps (void) return flag_check_data_deps != 0; } -struct tree_opt_pass pass_check_data_deps = +struct gimple_opt_pass pass_check_data_deps = { + { + GIMPLE_PASS, "ckdd", /* name */ gate_check_data_deps, /* gate */ check_data_deps, /* execute */ @@ -308,8 +324,8 @@ struct tree_opt_pass pass_check_data_deps = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - TODO_dump_func, /* todo_flags_finish */ - 0 /* letter */ + TODO_dump_func /* todo_flags_finish */ + } }; /* Canonical induction variable creation pass. */ @@ -329,8 +345,10 @@ gate_tree_ssa_loop_ivcanon (void) return flag_tree_loop_ivcanon != 0; } -struct tree_opt_pass pass_iv_canon = +struct gimple_opt_pass pass_iv_canon = { + { + GIMPLE_PASS, "ivcanon", /* name */ gate_tree_ssa_loop_ivcanon, /* gate */ tree_ssa_loop_ivcanon, /* execute */ @@ -342,8 +360,8 @@ struct tree_opt_pass pass_iv_canon = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - TODO_dump_func | TODO_verify_loops, /* todo_flags_finish */ - 0 /* letter */ + TODO_dump_func | TODO_verify_loops /* todo_flags_finish */ + } }; /* Propagation of constants using scev. */ @@ -354,8 +372,10 @@ gate_scev_const_prop (void) return flag_tree_scev_cprop; } -struct tree_opt_pass pass_scev_cprop = +struct gimple_opt_pass pass_scev_cprop = { + { + GIMPLE_PASS, "sccp", /* name */ gate_scev_const_prop, /* gate */ scev_const_prop, /* execute */ @@ -368,9 +388,9 @@ struct tree_opt_pass pass_scev_cprop = 0, /* properties_destroyed */ 0, /* todo_flags_start */ TODO_dump_func | TODO_cleanup_cfg - | TODO_update_ssa_only_virtuals, + | TODO_update_ssa_only_virtuals /* todo_flags_finish */ - 0 /* letter */ + } }; /* Remove empty loops. */ @@ -384,8 +404,10 @@ tree_ssa_empty_loop (void) return remove_empty_loops (); } -struct tree_opt_pass pass_empty_loop = +struct gimple_opt_pass pass_empty_loop = { + { + GIMPLE_PASS, "empty", /* name */ NULL, /* gate */ tree_ssa_empty_loop, /* execute */ @@ -398,8 +420,8 @@ struct tree_opt_pass pass_empty_loop = 0, /* properties_destroyed */ 0, /* todo_flags_start */ TODO_dump_func | TODO_verify_loops - | TODO_ggc_collect, /* todo_flags_finish */ - 0 /* letter */ + | TODO_ggc_collect /* todo_flags_finish */ + } }; /* Record bounds on numbers of iterations of loops. */ @@ -415,8 +437,10 @@ tree_ssa_loop_bounds (void) return 0; } -struct tree_opt_pass pass_record_bounds = +struct gimple_opt_pass pass_record_bounds = { + { + GIMPLE_PASS, NULL, /* name */ NULL, /* gate */ tree_ssa_loop_bounds, /* execute */ @@ -428,8 +452,8 @@ struct tree_opt_pass pass_record_bounds = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - 0, /* todo_flags_finish */ - 0 /* letter */ + 0 /* todo_flags_finish */ + } }; /* Complete unrolling of loops. */ @@ -451,8 +475,10 @@ gate_tree_complete_unroll (void) return true; } -struct tree_opt_pass pass_complete_unroll = +struct gimple_opt_pass pass_complete_unroll = { + { + GIMPLE_PASS, "cunroll", /* name */ gate_tree_complete_unroll, /* gate */ tree_complete_unroll, /* execute */ @@ -465,8 +491,8 @@ struct tree_opt_pass pass_complete_unroll = 0, /* properties_destroyed */ 0, /* todo_flags_start */ TODO_dump_func | TODO_verify_loops - | TODO_ggc_collect, /* todo_flags_finish */ - 0 /* letter */ + | TODO_ggc_collect /* todo_flags_finish */ + } }; /* Parallelization. */ @@ -488,8 +514,10 @@ tree_parallelize_loops (void) return 0; } -struct tree_opt_pass pass_parallelize_loops = +struct gimple_opt_pass pass_parallelize_loops = { + { + GIMPLE_PASS, "parloops", /* name */ gate_tree_parallelize_loops, /* gate */ tree_parallelize_loops, /* execute */ @@ -501,8 +529,8 @@ struct tree_opt_pass pass_parallelize_loops = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - TODO_dump_func | TODO_verify_loops, /* todo_flags_finish */ - 0 /* letter */ + TODO_dump_func | TODO_verify_loops /* todo_flags_finish */ + } }; /* Prefetching. */ @@ -522,8 +550,10 @@ gate_tree_ssa_loop_prefetch (void) return flag_prefetch_loop_arrays != 0; } -struct tree_opt_pass pass_loop_prefetch = +struct gimple_opt_pass pass_loop_prefetch = { + { + GIMPLE_PASS, "aprefetch", /* name */ gate_tree_ssa_loop_prefetch, /* gate */ tree_ssa_loop_prefetch, /* execute */ @@ -535,8 +565,8 @@ struct tree_opt_pass pass_loop_prefetch = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - TODO_dump_func | TODO_verify_loops, /* todo_flags_finish */ - 0 /* letter */ + TODO_dump_func | TODO_verify_loops /* todo_flags_finish */ + } }; /* Induction variable optimizations. */ @@ -557,8 +587,10 @@ gate_tree_ssa_loop_ivopts (void) return flag_ivopts != 0; } -struct tree_opt_pass pass_iv_optimize = +struct gimple_opt_pass pass_iv_optimize = { + { + GIMPLE_PASS, "ivopts", /* name */ gate_tree_ssa_loop_ivopts, /* gate */ tree_ssa_loop_ivopts, /* execute */ @@ -571,8 +603,8 @@ struct tree_opt_pass pass_iv_optimize = 0, /* properties_destroyed */ 0, /* todo_flags_start */ TODO_dump_func | TODO_verify_loops - | TODO_update_ssa | TODO_ggc_collect, /* todo_flags_finish */ - 0 /* letter */ + | TODO_update_ssa | TODO_ggc_collect /* todo_flags_finish */ + } }; /* Loop optimizer finalization. */ @@ -586,8 +618,10 @@ tree_ssa_loop_done (void) return 0; } -struct tree_opt_pass pass_tree_loop_done = +struct gimple_opt_pass pass_tree_loop_done = { + { + GIMPLE_PASS, "loopdone", /* name */ NULL, /* gate */ tree_ssa_loop_done, /* execute */ @@ -599,6 +633,6 @@ struct tree_opt_pass pass_tree_loop_done = 0, /* properties_provided */ 0, /* properties_destroyed */ 0, /* todo_flags_start */ - TODO_cleanup_cfg | TODO_dump_func, /* todo_flags_finish */ - 0 /* letter */ + TODO_cleanup_cfg | TODO_dump_func /* todo_flags_finish */ + } }; |