re PR target/15550 ([i386] ICE in extract_insn, at recog.c:2083)

PR target/15550
        * ifcvt.c (noce_try_move): Recognize all generated instructions.

From-SVN: r83395
This commit is contained in:
Richard Henderson 2004-06-19 12:13:03 -07:00 committed by Richard Henderson
parent eb4e1c013c
commit 8426c25e7c
2 changed files with 14 additions and 0 deletions

View File

@ -1,3 +1,8 @@
2004-06-19 Richard Henderson <rth@redhat.com>
PR target/15550
* ifcvt.c (noce_try_move): Recognize all generated instructions.
2004-06-19 Jan Hubicka <jh@suse.cz>
* function.c (free_after_compilation): Do not free computed_goto_common*.

View File

@ -745,6 +745,15 @@ noce_try_move (struct noce_if_info *if_info)
seq = get_insns ();
unshare_ifcvt_sequence (if_info, seq);
end_sequence ();
/* Make sure that all of the instructions emitted are
recognizable. As an excersise for the reader, build
a general mechanism that allows proper placement of
required clobbers. */
for (y = seq; y ; y = NEXT_INSN (y))
if (recog_memoized (y) == -1)
return FALSE;
emit_insn_before_setloc (seq, if_info->jump,
INSN_LOCATOR (if_info->insn_a));
}