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/resource.c | |
parent | 5a566bed2b7e0133247fa9fb3282116a8405dd3f (diff) | |
download | gcc-355e4ec44580fbe7c605e726afee6e2eba03f905.zip gcc-355e4ec44580fbe7c605e726afee6e2eba03f905.tar.gz gcc-355e4ec44580fbe7c605e726afee6e2eba03f905.tar.bz2 |
Basic block renumbering removal.
From-SVN: r53522
Diffstat (limited to 'gcc/resource.c')
-rw-r--r-- | gcc/resource.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/resource.c b/gcc/resource.c index 6c20517..04c6cb7 100644 --- a/gcc/resource.c +++ b/gcc/resource.c @@ -133,7 +133,7 @@ find_basic_block (insn, search_limit) rtx insn; int search_limit; { - int i; + basic_block bb; /* Scan backwards to the previous BARRIER. Then see if we can find a label that starts a basic block. Return the basic block number. */ @@ -156,9 +156,9 @@ find_basic_block (insn, search_limit) insn && GET_CODE (insn) == CODE_LABEL; insn = next_nonnote_insn (insn)) { - for (i = 0; i < n_basic_blocks; i++) - if (insn == BLOCK_HEAD (i)) - return i; + FOR_ALL_BB (bb) + if (insn == bb->head) + return bb->sindex; } return -1; @@ -1240,7 +1240,7 @@ init_resource_info (epilogue_insn) /* Allocate and initialize the tables used by mark_target_live_regs. */ target_hash_table = (struct target_info **) xcalloc (TARGET_HASH_PRIME, sizeof (struct target_info *)); - bb_ticks = (int *) xcalloc (n_basic_blocks, sizeof (int)); + bb_ticks = (int *) xcalloc (last_basic_block, sizeof (int)); } /* Free up the resources allcated to mark_target_live_regs (). This |