re PR middle-end/38074 (missed inlining on Core2 Duo due to apparent wrong branch...
authorJan Hubicka <jh@suse.cz>
Sat, 6 Dec 2008 08:34:20 +0000 (09:34 +0100)
committerJan Hubicka <hubicka@gcc.gnu.org>
Sat, 6 Dec 2008 08:34:20 +0000 (08:34 +0000)
commitc0ee00211f683cd8a0974cb211822c50b35b6782
tree1c3592ee7c56ccfdd8c2ce7168b872880b33ba1d
parentabc79c3a6d295d42b0a9ab48cea07090b0161ee8
re PR middle-end/38074 (missed inlining on Core2 Duo due  to apparent wrong branch prediction/profile)

PR tree-optimization/38074
* cgraphbuild.c (compute_call_stmt_bb_frequency): Fix handling of 0
entry frequency.
* predict.c (combine_predictions_for_bb): Ignore predictor predicting
in both dirrection for first match heuristics.
(tree_bb_level_predictions): Disable noreturn heuristic when there
is no returning path.

Co-Authored-By: Jakub Jelinek <jakub@redhat.com>
From-SVN: r142517
gcc/ChangeLog
gcc/cgraphbuild.c
gcc/predict.c