Commit 3258272f by Jan Hubicka Committed by Jan Hubicka

profile.c (rest_of_handle_branch_prob): Fix handling of estimation after RTL profiling.

	* profile.c (rest_of_handle_branch_prob): Fix handling of estimation
	after RTL profiling.

From-SVN: r102069
parent 01c0a9fa
2005-07-16 Jan Hubicka <jh@suse.cz>
* profile.c (rest_of_handle_branch_prob): Fix handling of estimation
after RTL profiling.
2005-07-11 Andrew Pinski <pinskia@physics.uc.edu>
PR middle-end/22398
......
......@@ -1381,7 +1381,9 @@ rest_of_handle_branch_prob (void)
flow_loops_dump (&loops, dump_file, NULL, 0);
/* Estimate using heuristics if no profiling info is available. */
if (flag_guess_branch_prob && profile_status == PROFILE_ABSENT)
if (flag_guess_branch_prob
&& (profile_status == PROFILE_ABSENT
|| (profile_status == PROFILE_READ && !flag_tree_based_profiling)))
estimate_probability (&loops);
flow_loops_free (&loops);
......
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