diff options
author | Graham Stott <grahams@rcp.co.uk> | 1999-10-24 13:20:00 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 1999-10-24 13:20:00 -0700 |
commit | ac6067399cdc9569760e681aa421fe37c2576905 (patch) | |
tree | 051f5eb90b57e7372e42e24d2bffe27f6ebcd8a4 /gcc/unroll.c | |
parent | 9d73cc12c33dd41a08c85ca008684f8a10eeda61 (diff) | |
download | gcc-ac6067399cdc9569760e681aa421fe37c2576905.zip gcc-ac6067399cdc9569760e681aa421fe37c2576905.tar.gz gcc-ac6067399cdc9569760e681aa421fe37c2576905.tar.bz2 |
alias.c: Include ggc.h.
* alias.c: Include ggc.h.
(reg_base_value, new_reg_base_value, reg_base_value_size): Make static.
(record_set): Verify enough room in reg_base_value.
(init_alias_analysis): Allocate reg_base_value with xcalloc.
Register it as a GC root.
(end_alias_analysis): Free reg_base_value. Remove it as a GC root.
* Makefile.in (alias.o): Depend on ggc.h.
* unroll.c (unroll_loop): Verify the insn before a barrier
is a JUMP_INSN before checking JUMP_LABEL.
Co-Authored-By: Richard Henderson <rth@cygnus.com>
From-SVN: r30147
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index c21638f..d766b74 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -649,6 +649,7 @@ unroll_loop (loop_end, insn_count, loop_start, end_insert_before, if (unroll_type == UNROLL_NAIVE && GET_CODE (last_loop_insn) == BARRIER + && GET_CODE (PREV_INSN (last_loop_insn)) == JUMP_INSN && start_label != JUMP_LABEL (PREV_INSN (last_loop_insn))) { /* In this case, we must copy the jump and barrier, because they will @@ -1961,7 +1962,8 @@ copy_loop_body (copy_start, copy_end, map, exit_label, last_iteration, /* Make split induction variable constants `permanent' since we know there are no backward branches across iteration variable settings which would invalidate this. */ - if (dest_reg_was_split) + if (dest_reg_was_split + && (GET_CODE (pattern) == SET || GET_CODE (pattern) == USE)) { int regno = REGNO (SET_DEST (pattern)); |