diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-29 08:58:52 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-08-29 08:58:52 +0000 |
commit | 94ba1cf1cb865588f328a111068e2c04bd2fd718 (patch) | |
tree | 92d8dcba01165e9199c912b448b73d517d093087 /gcc/basic-block.h | |
parent | 1add270f257ff60ccd170441dc267fbdd2f3ba73 (diff) | |
download | gcc-94ba1cf1cb865588f328a111068e2c04bd2fd718.tar.gz |
* tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop
is not cold.
* predict.c (optimize_bb_for_size_p, optimize_bb_for_speed_p):
Constify arguments.
(optimize_loop_for_size_p, optimize_loop_for_speed_p): New functions.
* basic-block.h (optimize_bb_for_size_p, optimize_bb_for_speed_p):
Constify.
(optimize_loop_for_size_p, optimize_loop_for_speed_p): Declare.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@139756 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/basic-block.h')
-rw-r--r-- | gcc/basic-block.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/basic-block.h b/gcc/basic-block.h index c3cb76bd79b..50d3e628aea 100644 --- a/gcc/basic-block.h +++ b/gcc/basic-block.h @@ -831,14 +831,16 @@ extern bool maybe_hot_bb_p (const_basic_block); extern bool maybe_hot_edge_p (edge); extern bool probably_cold_bb_p (const_basic_block); extern bool probably_never_executed_bb_p (const_basic_block); -extern bool optimize_bb_for_size_p (basic_block); -extern bool optimize_bb_for_speed_p (basic_block); +extern bool optimize_bb_for_size_p (const_basic_block); +extern bool optimize_bb_for_speed_p (const_basic_block); extern bool optimize_edge_for_size_p (edge); extern bool optimize_edge_for_speed_p (edge); extern bool optimize_insn_for_size_p (void); extern bool optimize_insn_for_speed_p (void); extern bool optimize_function_for_size_p (struct function *); extern bool optimize_function_for_speed_p (struct function *); +extern bool optimize_loop_for_size_p (struct loop *); +extern bool optimize_loop_for_speed_p (struct loop *); extern bool gimple_predicted_by_p (const_basic_block, enum br_predictor); extern bool rtl_predicted_by_p (const_basic_block, enum br_predictor); extern void gimple_predict_edge (edge, enum br_predictor, int); |