predict.c (always_optimize_for_size_p): New function.
authorJan Hubicka <jh@suse.cz>
Tue, 29 Jul 2008 10:52:16 +0000 (10:52 +0000)
committerJan Hubicka <hubicka@gcc.gnu.org>
Tue, 29 Jul 2008 10:52:16 +0000 (10:52 +0000)
commitbf08ebebc7fb2f16aa6095a10987196cb4267a78
treea553c86e8031502bd1ab3bdb7e5a7c83ff5e1088
parent993555181042e01fcdb573a44f4c787a3e50e25a
predict.c (always_optimize_for_size_p): New function.

* predict.c (always_optimize_for_size_p): New function.
(optimize_bb_for_size_p, optimize_bb_for_speed_p,
optimize_edge_for_size_p, optimize_edge_for_speed_p,
optimize_insn_for_size_p, optimize_insn_for_speed_p): New global
functions.
(rtl_profile_for_bb, rtl_profile_for_edge, rtl_default_profile): New.
* function.c (prepare_function_start): Set default profile.
* function.h (rtl_data): Add maybe_hot_insn_p.
* cfgexpand.c (expand_gimple_basic_block): Set RTL profile.
(construct_exit_block): Likewise.
(tree_expand_cfg): Likewise.
* basic-block.h
(optimize_bb_for_size_p, optimize_bb_for_speed_p,
optimize_edge_for_size_p, optimize_edge_for_speed_p,
optimize_insn_for_size_p, optimize_insn_for_speed_p): Declare.
(rtl_profile_for_bb, rtl_profile_for_edge, default_rtl_profile):
Declare.

From-SVN: r138237
gcc/ChangeLog
gcc/basic-block.h
gcc/cfgexpand.c
gcc/config/i386/i386.c
gcc/function.c
gcc/function.h
gcc/predict.c