diff options
author | Michael Meissner <meissner@gcc.gnu.org> | 1997-06-16 18:40:41 +0000 |
---|---|---|
committer | Michael Meissner <meissner@gcc.gnu.org> | 1997-06-16 18:40:41 +0000 |
commit | 8e08106d3e424349f1d5240b14dba32c7b24035a (patch) | |
tree | 7152aac86a8e6785646d9495a2de01b86387dcd2 /gcc/local-alloc.c | |
parent | 119f2738a65cad2dd277c5c86cd10efb3f503d73 (diff) | |
download | gcc-8e08106d3e424349f1d5240b14dba32c7b24035a.zip gcc-8e08106d3e424349f1d5240b14dba32c7b24035a.tar.gz gcc-8e08106d3e424349f1d5240b14dba32c7b24035a.tar.bz2 |
Use REG_SET macros
From-SVN: r14250
Diffstat (limited to 'gcc/local-alloc.c')
-rw-r--r-- | gcc/local-alloc.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gcc/local-alloc.c b/gcc/local-alloc.c index 3603e53..83cb08f 100644 --- a/gcc/local-alloc.c +++ b/gcc/local-alloc.c @@ -1181,8 +1181,7 @@ update_equiv_regs () && GET_CODE (insn) == INSN && REG_BASIC_BLOCK (regno) < 0) { - int l, offset; - REGSET_ELT_TYPE bit; + int l; emit_insn_before (copy_rtx (PATTERN (equiv_insn)), insn); REG_NOTES (PREV_INSN (insn)) = REG_NOTES (equiv_insn); @@ -1202,11 +1201,8 @@ update_equiv_regs () if (block >= 0 && insn == basic_block_head[block]) basic_block_head[block] = PREV_INSN (insn); - offset = regno / REGSET_ELT_BITS; - bit = ((REGSET_ELT_TYPE) 1 - << (regno % REGSET_ELT_BITS)); for (l = 0; l < n_basic_blocks; l++) - basic_block_live_at_start[l][offset] &= ~ bit; + CLEAR_REGNO_REG_SET (basic_block_live_at_start[l], regno); } } } @@ -1253,11 +1249,7 @@ block_alloc (b) /* Initialize table of hardware registers currently live. */ -#ifdef HARD_REG_SET - regs_live = *basic_block_live_at_start[b]; -#else - COPY_HARD_REG_SET (regs_live, basic_block_live_at_start[b]); -#endif + REG_SET_TO_HARD_REG_SET (regs_live, basic_block_live_at_start[b]); /* This loop scans the instructions of the basic block and assigns quantities to registers. |