diff options
author | Jan Hubicka <jh@suse.cz> | 2008-08-29 10:40:01 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2008-08-29 08:40:01 +0000 |
commit | 7299cb994088a68a4fec5e479a03fc8a71e50646 (patch) | |
tree | 42efa153d20247d1235c077d9e83fe93cb6e2be6 /gcc/tree-pass.h | |
parent | a4b930608f389022fdcb256796c187719307b410 (diff) | |
download | gcc-7299cb994088a68a4fec5e479a03fc8a71e50646.zip gcc-7299cb994088a68a4fec5e479a03fc8a71e50646.tar.gz gcc-7299cb994088a68a4fec5e479a03fc8a71e50646.tar.bz2 |
cp-gimplify.c (cp_gimplify_expr): Add PRED_CONTINUE heuristic.
* cp-gimplify.c (cp_gimplify_expr): Add PRED_CONTINUE heuristic.
* tree-pass.h (pass_strip_predict_hints): Declare.
* predict.c (strip_builtin_expect): Rename to ...
(strip_predict_hints): ... this one; strip also GIMPLE_PREDICT.
(tree_bb_level_predictions): Do not remove GIMPLE_PREDICT.
(tree_estimate_probability): Do not strip builtin_expect.
(pass_strip_predict_hints): New pass.
* tree-inline.c (expand_call_inline): When inlining cold function, predict
it as unlikely.
* passes.c (init_optimization_passes): Add pass_strip_predict_hints.
From-SVN: r139755
Diffstat (limited to 'gcc/tree-pass.h')
-rw-r--r-- | gcc/tree-pass.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/tree-pass.h b/gcc/tree-pass.h index f4e02e8..c6a97cb 100644 --- a/gcc/tree-pass.h +++ b/gcc/tree-pass.h @@ -346,6 +346,7 @@ extern struct gimple_opt_pass pass_merge_phi; extern struct gimple_opt_pass pass_split_crit_edges; extern struct gimple_opt_pass pass_pre; extern struct gimple_opt_pass pass_profile; +extern struct gimple_opt_pass pass_strip_predict_hints; extern struct gimple_opt_pass pass_lower_complex_O0; extern struct gimple_opt_pass pass_lower_complex; extern struct gimple_opt_pass pass_lower_vector; |