bb-reorder.c (find_traces_1_round): Do not send basic block to next round when we are in the last round.

* bb-reorder.c (find_traces_1_round): Do not send basic block
	to next round when we are in the last round.

From-SVN: r68633
This commit is contained in:
Josef Zlomek 2003-06-28 14:07:04 +02:00 committed by Josef Zlomek
parent 1af3e06bee
commit a487649ce8
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-06-28 Josef Zlomek <zlomekj@suse.cz>
* bb-reorder.c (find_traces_1_round): Do not send basic block
to next round when we are in the last round.
2003-06-28 Neil Booth <neil@daikokuya.co.uk> 2003-06-28 Neil Booth <neil@daikokuya.co.uk>
* Makefile.in: Update. * Makefile.in: Update.

View File

@ -374,8 +374,9 @@ find_traces_1_round (int branch_th, int exec_th, gcov_type count_th,
fprintf (rtl_dump_file, "Getting bb %d\n", bb->index); fprintf (rtl_dump_file, "Getting bb %d\n", bb->index);
/* If the BB's frequency is too low send BB to the next round. */ /* If the BB's frequency is too low send BB to the next round. */
if (bb->frequency < exec_th || bb->count < count_th if (round < N_ROUNDS - 1
|| ((round < N_ROUNDS - 1) && probably_never_executed_bb_p (bb))) && (bb->frequency < exec_th || bb->count < count_th
|| probably_never_executed_bb_p (bb)))
{ {
int key = bb_to_key (bb); int key = bb_to_key (bb);
bbd[bb->index].heap = new_heap; bbd[bb->index].heap = new_heap;