Commit 494c950b by Jan Hubicka Committed by Jan Hubicka

unroll.c (final_reg_note_copy): Properly handle REG_LABEL

	* unroll.c (final_reg_note_copy): Properly handle
	REG_LABEL
	(unroll_loops): Fix LOOP_CONDITION heuristics.

From-SVN: r48839
parent 69a0611f
Mon Jan 14 20:23:34 CET 2002 Jan Hubicka <jh@suse.cz>
* unroll.c (final_reg_note_copy): Properly handle
REG_LABEL
(unroll_loops): Fix LOOP_CONDITION heuristics.
2002-01-14 Geoffrey Keating <geoffk@redhat.com> 2002-01-14 Geoffrey Keating <geoffk@redhat.com>
* doc/invoke.texi (Xstormy16 Options): Add xstormy16 option. * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
......
...@@ -987,7 +987,7 @@ unroll_loop (loop, insn_count, strength_reduce_p) ...@@ -987,7 +987,7 @@ unroll_loop (loop, insn_count, strength_reduce_p)
less_p ? GE : LE, NULL_RTX, less_p ? GE : LE, NULL_RTX,
mode, unsigned_p, labels[1]); mode, unsigned_p, labels[1]);
predict_insn_def (get_last_insn (), PRED_LOOP_CONDITION, predict_insn_def (get_last_insn (), PRED_LOOP_CONDITION,
NOT_TAKEN); TAKEN);
JUMP_LABEL (get_last_insn ()) = labels[1]; JUMP_LABEL (get_last_insn ()) = labels[1];
LABEL_NUSES (labels[1])++; LABEL_NUSES (labels[1])++;
} }
...@@ -1741,16 +1741,11 @@ final_reg_note_copy (notesp, map) ...@@ -1741,16 +1741,11 @@ final_reg_note_copy (notesp, map)
{ {
rtx insn = map->insn_map[INSN_UID (XEXP (note, 0))]; rtx insn = map->insn_map[INSN_UID (XEXP (note, 0))];
/* If we failed to remap the note, something is awry. /* If we failed to remap the note, something is awry. */
Allow REG_LABEL as it may reference label outside
the unrolled loop. */
if (!insn) if (!insn)
{ abort ();
if (REG_NOTE_KIND (note) != REG_LABEL)
abort (); XEXP (note, 0) = insn;
}
else
XEXP (note, 0) = insn;
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment