diff options
author | Richard Henderson <rth@redhat.com> | 2002-05-16 19:31:56 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2002-05-16 19:31:56 -0700 |
commit | 0b17ab2f5b1184fdb568786f791bc0613e574241 (patch) | |
tree | 94c8895c6dde3b282518d4c9951067cd0ac517fd /gcc/regclass.c | |
parent | 8ae86b3cd8c96e287714f127879b018ac7fccd7d (diff) | |
download | gcc-0b17ab2f5b1184fdb568786f791bc0613e574241.tar.gz |
Revert "Basic block renumbering removal", and two followup patches.
From-SVN: r53537
Diffstat (limited to 'gcc/regclass.c')
-rw-r--r-- | gcc/regclass.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/regclass.c b/gcc/regclass.c index 668d92d4bea..decab26b4af 100644 --- a/gcc/regclass.c +++ b/gcc/regclass.c @@ -1127,10 +1127,10 @@ scan_one_insn (insn, pass) INSN could not be at the beginning of that block. */ if (previnsn == 0 || GET_CODE (previnsn) == JUMP_INSN) { - basic_block b; - FOR_ALL_BB (b) - if (insn == b->head) - b->head = newinsn; + int b; + for (b = 0; b < n_basic_blocks; b++) + if (insn == BLOCK_HEAD (b)) + BLOCK_HEAD (b) = newinsn; } /* This makes one more setting of new insns's dest. */ @@ -1255,7 +1255,7 @@ regclass (f, nregs, dump) for (pass = 0; pass <= flag_expensive_optimizations; pass++) { - basic_block bb; + int index; if (dump) fprintf (dump, "\n\nPass %i\n\n",pass); @@ -1277,8 +1277,9 @@ regclass (f, nregs, dump) insn = scan_one_insn (insn, pass); } else - FOR_ALL_BB (bb) + for (index = 0; index < n_basic_blocks; index++) { + basic_block bb = BASIC_BLOCK (index); /* Show that an insn inside a loop is likely to be executed three times more than insns outside a loop. This is much more |