diff options
author | Josef Zlomek <zlomekj@suse.cz> | 2003-06-28 14:07:04 +0200 |
---|---|---|
committer | Josef Zlomek <zlomek@gcc.gnu.org> | 2003-06-28 12:07:04 +0000 |
commit | a487649ce8e6ab118a384e9f4aece4a406fecb42 (patch) | |
tree | eaf8d053ad6a55277931805291caa18d7eb7e3ef /gcc | |
parent | 1af3e06beef2bc9769d0c3bc2f2e7dce549f8305 (diff) | |
download | gcc-a487649ce8e6ab118a384e9f4aece4a406fecb42.zip gcc-a487649ce8e6ab118a384e9f4aece4a406fecb42.tar.gz gcc-a487649ce8e6ab118a384e9f4aece4a406fecb42.tar.bz2 |
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
Diffstat (limited to 'gcc')
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/bb-reorder.c | 5 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index cc37c33..e5e9109 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -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> * Makefile.in: Update. diff --git a/gcc/bb-reorder.c b/gcc/bb-reorder.c index 7d221c6..e055611 100644 --- a/gcc/bb-reorder.c +++ b/gcc/bb-reorder.c @@ -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); /* If the BB's frequency is too low send BB to the next round. */ - if (bb->frequency < exec_th || bb->count < count_th - || ((round < N_ROUNDS - 1) && probably_never_executed_bb_p (bb))) + if (round < N_ROUNDS - 1 + && (bb->frequency < exec_th || bb->count < count_th + || probably_never_executed_bb_p (bb))) { int key = bb_to_key (bb); bbd[bb->index].heap = new_heap; |