diff options
author | Jan Hubicka <jh@suse.cz> | 2002-10-17 15:54:32 +0200 |
---|---|---|
committer | Jan Hubicka <hubicka@gcc.gnu.org> | 2002-10-17 13:54:32 +0000 |
commit | 2ffa993239e53b8a905c7761c1f065d24f74556e (patch) | |
tree | eec33f64b6ca8a24f1836169b02e799c86f22c09 /gcc/toplev.c | |
parent | b216f69b04b7fea3c554235274820eb9ec2ebf7f (diff) | |
download | gcc-2ffa993239e53b8a905c7761c1f065d24f74556e.zip gcc-2ffa993239e53b8a905c7761c1f065d24f74556e.tar.gz gcc-2ffa993239e53b8a905c7761c1f065d24f74556e.tar.bz2 |
Really commit patch announced at Oct 14 PR c/7344
Really commit patch announced at Oct 14
PR c/7344
* predict.c (can_predict_insn_p): New function.
(estimate_probability): Avoid unnecesary work.
(process_note_prediction): Likewise.
* toplev.c (rest_of_compilation): Account early branch prediction pass
as TV_BRANCH_PROB.
From-SVN: r58246
Diffstat (limited to 'gcc/toplev.c')
-rw-r--r-- | gcc/toplev.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/toplev.c b/gcc/toplev.c index a6fe726..2173898 100644 --- a/gcc/toplev.c +++ b/gcc/toplev.c @@ -2590,7 +2590,9 @@ rest_of_compilation (decl) delete_unreachable_blocks (); /* Turn NOTE_INSN_PREDICTIONs into branch predictions. */ + timevar_push (TV_BRANCH_PROB); note_prediction_to_br_prob (); + timevar_pop (TV_BRANCH_PROB); /* We may have potential sibling or tail recursion sites. Select one (of possibly multiple) methods of performing the call. */ |