Jan Hubicka - Make init_optimization_passes (perhaps) more readable (original) (raw)

This is the mail archive of the gcc-patches@gcc.gnu.orgmailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Hi, it looks like that our ever growing pass queue is quite confusing for newcomers. We can probably make it more readable by rendering our passes/subpasses/subsubpasses and subsubsubpasses strictly in the order they are applied on the function and with subpasses indented.

The bootstrap/regtesting is running on i686-linux (no fortran). Does it look better?

Honza

* passes.c (init_optimization_passes): Reindent.

Index: passes.c

--- passes.c (revision 120974) +++ passes.c (working copy) @@ -438,28 +438,11 @@ init_optimization_passes (void) #define NEXT_PASS(PASS) (p = next_pass_1 (p, &PASS)) - /* Interprocedural optimization passes. */ - p = &all_ipa_passes; - NEXT_PASS (pass_ipa_function_and_variable_visibility); - NEXT_PASS (pass_ipa_early_inline); - NEXT_PASS (pass_early_local_passes); - NEXT_PASS (pass_ipa_increase_alignment); - NEXT_PASS (pass_ipa_cp); - NEXT_PASS (pass_ipa_inline); - NEXT_PASS (pass_ipa_reference); - NEXT_PASS (pass_ipa_pure_const); - NEXT_PASS (pass_ipa_type_escape); - NEXT_PASS (pass_ipa_pta); - *p = NULL;

NEXT_PASS (pass_warn_function_noreturn); NEXT_PASS (pass_free_datastructures); NEXT_PASS (pass_mudflap_2); NEXT_PASS (pass_free_cfg_annotations); NEXT_PASS (pass_expand); NEXT_PASS (pass_rest_of_compilation); - NEXT_PASS (pass_clean_state); - *p = NULL; + { + struct tree_opt_pass **p = &pass_rest_of_compilation.sub; - p = &pass_all_optimizations.sub; - NEXT_PASS (pass_create_structure_vars); - NEXT_PASS (pass_may_alias); - NEXT_PASS (pass_return_slot); - NEXT_PASS (pass_rename_ssa_copies); - NEXT_PASS (pass_early_warn_uninitialized);

#undef NEXT_PASS


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]