aboutsummaryrefslogtreecommitdiff
path: root/gcc/unroll.c
diff options
context:
space:
mode:
authorGraham Stott <grahams@rcp.co.uk>1999-10-24 13:20:00 -0700
committerRichard Henderson <rth@gcc.gnu.org>1999-10-24 13:20:00 -0700
commitac6067399cdc9569760e681aa421fe37c2576905 (patch)
tree051f5eb90b57e7372e42e24d2bffe27f6ebcd8a4 /gcc/unroll.c
parent9d73cc12c33dd41a08c85ca008684f8a10eeda61 (diff)
downloadgcc-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.c4
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));