diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-29 10:52:16 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-07-29 10:52:16 +0000 |
commit | 7dfb44a02c99c300d7ae193feeda825148b28993 (patch) | |
tree | a553c86e8031502bd1ab3bdb7e5a7c83ff5e1088 /gcc/function.h | |
parent | 1306a30fca6da9294f3a7750135cb0e6f8cebd3f (diff) | |
download | gcc-7dfb44a02c99c300d7ae193feeda825148b28993.tar.gz |
* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@138237 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/function.h')
-rw-r--r-- | gcc/function.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/function.h b/gcc/function.h index 9de018100d9..94f4642dc32 100644 --- a/gcc/function.h +++ b/gcc/function.h @@ -397,6 +397,9 @@ struct rtl_data GTY(()) Set in stmt.c if anything is allocated on the stack there. Set in reload1.c if anything is allocated on the stack there. */ bool frame_pointer_needed; + + /* When set, expand should optimize for speed. */ + bool maybe_hot_insn_p; }; #define return_label (crtl->x_return_label) |