diff options
author | Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz> | 2002-05-16 10:34:53 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-05-16 10:34:53 -0700 |
commit | 355e4ec44580fbe7c605e726afee6e2eba03f905 (patch) | |
tree | 47d672ee2344eb156d43b4e6fc935c02ed904ce7 /gcc/final.c | |
parent | 5a566bed2b7e0133247fa9fb3282116a8405dd3f (diff) | |
download | gcc-355e4ec44580fbe7c605e726afee6e2eba03f905.tar.gz |
Basic block renumbering removal.
From-SVN: r53522
Diffstat (limited to 'gcc/final.c')
-rw-r--r-- | gcc/final.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/gcc/final.c b/gcc/final.c index 3e1b2232c39..0f4464a7893 100644 --- a/gcc/final.c +++ b/gcc/final.c @@ -928,8 +928,8 @@ insn_current_reference_address (branch) void compute_alignments () { - int i; int log, max_skip, max_log; + basic_block bb; if (label_align) { @@ -946,9 +946,8 @@ compute_alignments () if (! optimize || optimize_size) return; - for (i = 0; i < n_basic_blocks; i++) + FOR_ALL_BB (bb) { - basic_block bb = BASIC_BLOCK (i); rtx label = bb->head; int fallthru_frequency = 0, branch_frequency = 0, has_fallthru = 0; edge e; @@ -978,8 +977,8 @@ compute_alignments () if (!has_fallthru && (branch_frequency > BB_FREQ_MAX / 10 - || (bb->frequency > BASIC_BLOCK (i - 1)->frequency * 10 - && (BASIC_BLOCK (i - 1)->frequency + || (bb->frequency > bb->prev_bb->frequency * 10 + && (bb->prev_bb->frequency <= ENTRY_BLOCK_PTR->frequency / 2)))) { log = JUMP_ALIGN (label); @@ -2019,7 +2018,7 @@ final_scan_insn (insn, file, optimize, prescan, nopeepholes) #endif if (flag_debug_asm) fprintf (asm_out_file, "\t%s basic block %d\n", - ASM_COMMENT_START, NOTE_BASIC_BLOCK (insn)->index); + ASM_COMMENT_START, NOTE_BASIC_BLOCK (insn)->sindex); break; case NOTE_INSN_EH_REGION_BEG: |