Commit 3b131f6a by Jan Hubicka Committed by Jan Hubicka

bb-reorer.c (find_rarely_executed_basic_blocks_and_crossin_edges): trust precise profiles.

	* bb-reorer.c (find_rarely_executed_basic_blocks_and_crossin_edges):
	trust precise profiles.

From-SVN: r266726
parent df996c3f
2018-12-02 Jan Hubicka <jh@suse.cz>
* bb-reorer.c (find_rarely_executed_basic_blocks_and_crossin_edges):
trust precise profiles.
2018-12-02 Jakub Jelinek <jakub@redhat.com> 2018-12-02 Jakub Jelinek <jakub@redhat.com>
* tree-nested.c (convert_nonlocal_omp_clauses, * tree-nested.c (convert_nonlocal_omp_clauses,
...@@ -1663,11 +1663,13 @@ find_rarely_executed_basic_blocks_and_crossing_edges (void) ...@@ -1663,11 +1663,13 @@ find_rarely_executed_basic_blocks_and_crossing_edges (void)
if (probably_never_executed_bb_p (cfun, bb)) if (probably_never_executed_bb_p (cfun, bb))
{ {
cold_bb = true;
/* Handle profile insanities created by upstream optimizations /* Handle profile insanities created by upstream optimizations
by also checking the incoming edge weights. If there is a non-cold by also checking the incoming edge weights. If there is a non-cold
incoming edge, conservatively prevent this block from being split incoming edge, conservatively prevent this block from being split
into the cold section. */ into the cold section. */
cold_bb = true; if (!bb->count.precise_p ())
FOR_EACH_EDGE (e, ei, bb->preds) FOR_EACH_EDGE (e, ei, bb->preds)
if (!probably_never_executed_edge_p (cfun, e)) if (!probably_never_executed_edge_p (cfun, e))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment