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/passes.c | |
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/passes.c')
-rw-r--r-- | gcc/passes.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/passes.c b/gcc/passes.c index f45507f..7c76747 100644 --- a/gcc/passes.c +++ b/gcc/passes.c @@ -585,6 +585,7 @@ init_optimization_passes (void) struct opt_pass **p = &pass_all_optimizations.pass.sub; /* Initial scalar cleanups before alias computation. They ensure memory accesses are not indirect wherever possible. */ + NEXT_PASS (pass_strip_predict_hints); NEXT_PASS (pass_update_address_taken); NEXT_PASS (pass_rename_ssa_copies); NEXT_PASS (pass_complete_unrolli); |