(add_to_delay_list): Clear any cached block information for INSN.
From-SVN: r4084
This commit is contained in:
parent
cbcf989d7f
commit
c8cfe1f62b
19
gcc/reorg.c
19
gcc/reorg.c
@ -879,9 +879,24 @@ add_to_delay_list (insn, delay_list)
|
|||||||
rtx insn;
|
rtx insn;
|
||||||
rtx delay_list;
|
rtx delay_list;
|
||||||
{
|
{
|
||||||
/* If we have an empty list, just make a new list element. */
|
/* If we have an empty list, just make a new list element. If
|
||||||
|
INSN has it's block number recorded, clear it since we may
|
||||||
|
be moving the insn to a new block. */
|
||||||
|
|
||||||
if (delay_list == 0)
|
if (delay_list == 0)
|
||||||
return gen_rtx (INSN_LIST, VOIDmode, insn, NULL_RTX);
|
{
|
||||||
|
struct target_info *tinfo;
|
||||||
|
|
||||||
|
for (tinfo = target_hash_table[INSN_UID (insn) % TARGET_HASH_PRIME];
|
||||||
|
tinfo; tinfo = tinfo->next)
|
||||||
|
if (tinfo->uid == INSN_UID (insn))
|
||||||
|
break;
|
||||||
|
|
||||||
|
if (tinfo)
|
||||||
|
tinfo->block = -1;
|
||||||
|
|
||||||
|
return gen_rtx (INSN_LIST, VOIDmode, insn, NULL_RTX);
|
||||||
|
}
|
||||||
|
|
||||||
/* Otherwise this must be an INSN_LIST. Add INSN to the end of the
|
/* Otherwise this must be an INSN_LIST. Add INSN to the end of the
|
||||||
list. */
|
list. */
|
||||||
|
Loading…
Reference in New Issue
Block a user