diff options
author | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-14 19:29:08 +0000 |
---|---|---|
committer | hubicka <hubicka@138bc75d-0d04-0410-961f-82ee72b054a4> | 2002-01-14 19:29:08 +0000 |
commit | 45c2115a40f949fd49bd27830d2e7be1bdf3e5c3 (patch) | |
tree | a15b5f7f5f29ff6093b4d07a5c0a9d389d110e3e /gcc/unroll.c | |
parent | 455123cf32ba933aceed40c8ef9221e5a4de4e5b (diff) | |
download | ppe42-gcc-45c2115a40f949fd49bd27830d2e7be1bdf3e5c3.tar.gz ppe42-gcc-45c2115a40f949fd49bd27830d2e7be1bdf3e5c3.zip |
* unroll.c (final_reg_note_copy): Properly handle
REG_LABEL
(unroll_loops): Fix LOOP_CONDITION heuristics.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@48839 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/unroll.c')
-rw-r--r-- | gcc/unroll.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/gcc/unroll.c b/gcc/unroll.c index aa1b2c68448..a47fdbe8958 100644 --- a/gcc/unroll.c +++ b/gcc/unroll.c @@ -987,7 +987,7 @@ unroll_loop (loop, insn_count, strength_reduce_p) less_p ? GE : LE, NULL_RTX, mode, unsigned_p, labels[1]); predict_insn_def (get_last_insn (), PRED_LOOP_CONDITION, - NOT_TAKEN); + TAKEN); JUMP_LABEL (get_last_insn ()) = labels[1]; LABEL_NUSES (labels[1])++; } @@ -1741,16 +1741,11 @@ final_reg_note_copy (notesp, map) { rtx insn = map->insn_map[INSN_UID (XEXP (note, 0))]; - /* If we failed to remap the note, something is awry. - Allow REG_LABEL as it may reference label outside - the unrolled loop. */ + /* If we failed to remap the note, something is awry. */ if (!insn) - { - if (REG_NOTE_KIND (note) != REG_LABEL) - abort (); - } - else - XEXP (note, 0) = insn; + abort (); + + XEXP (note, 0) = insn; } } |