GCC Middle and Back End API Reference
tree-optimize.c File Reference

Functions

static unsigned int execute_cleanup_cfg_post_optimizing ()
gimple_opt_passmake_pass_cleanup_cfg_post_optimizing ()
unsigned int execute_fixup_cfg ()
gimple_opt_passmake_pass_fixup_cfg ()

Function Documentation

static unsigned int execute_cleanup_cfg_post_optimizing ( )
static
@verbatim Top-level control of tree optimizations.

Copyright (C) 2001-2013 Free Software Foundation, Inc. Contributed by Diego Novillo dnovi.nosp@m.llo@.nosp@m.redha.nosp@m.t.co.nosp@m.m

This file is part of GCC.

GCC is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 3, or (at your option) any later version.

GCC is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with GCC; see the file COPYING3. If not see http://www.gnu.org/licenses/.

Pass: cleanup the CFG just before expanding trees to RTL.
   This is just a round of label cleanups and case node grouping
   because after the tree optimizers have run such cleanups may
   be necessary.   

References cleanup_dead_labels(), cleanup_tree_cfg(), dump_enumerated_decls(), dump_flags, error(), flag_dump_unnumbered, group_case_labels(), and maybe_remove_unreachable_handlers().

unsigned int execute_fixup_cfg ( void  )
IPA passes, compilation of earlier functions or inlining
   might have changed some properties, such as marked functions nothrow,
   pure, const or noreturn.
   Remove redundant edges and basic blocks, and create new ones if necessary.

   This pass can't be executed as stand alone pass from pass manager, because
   in between inlining and this fixup the verify_flow_info would fail.   

References apply_scale(), builtin_decl_implicit(), cfun, cgraph_get_node(), compute_function_frequency(), count, edge_def::count, basic_block_def::count, cgraph_node::count, current_function_decl, dump_file, dump_flags, fixup_noreturn_call(), gimple_build_call(), gimple_call_flags(), gimple_call_fndecl(), function::gimple_df, gimple_dump_cfg(), gimple_in_ssa_p(), gimple_purge_dead_abnormal_call_edges(), gimple_purge_dead_eh_edges(), gsi_end_p(), gsi_insert_after(), gsi_last_bb(), GSI_NEW_STMT, gsi_next(), gsi_start_bb(), gsi_stmt(), is_ctrl_stmt(), is_gimple_call(), last_stmt(), LOOPS_NEED_FIXUP, loops_state_set(), maybe_clean_eh_stmt(), basic_block_def::succs, update_stmt(), and vec_free().

Referenced by inline_transform(), local_pure_const(), and tree_profiling().

gimple_opt_pass* make_pass_cleanup_cfg_post_optimizing ( )
gimple_opt_pass* make_pass_fixup_cfg ( )