diff options
author | Jan Hubicka <jh@suse.cz> | 2008-08-29 10:58:52 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-08-29 08:58:52 +0000 |
commit | cc870036bd76fccec8aeb19a3f8c4fda081e5c3d (patch) | |
tree | 92d8dcba01165e9199c912b448b73d517d093087 /gcc/basic-block.h | |
parent | 7299cb994088a68a4fec5e479a03fc8a71e50646 (diff) | |
download | gcc-cc870036bd76fccec8aeb19a3f8c4fda081e5c3d.tar.gz |
tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Check that loop is not cold.
* 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.
From-SVN: r139756
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); |