(move_movables): Aviod lossage when CALL_INSN_FUNCTION_USAGE
is NULL. From-SVN: r7777
This commit is contained in:
parent
98068ba2d7
commit
8c4f5c09f0
10
gcc/loop.c
10
gcc/loop.c
|
@ -1791,8 +1791,9 @@ move_movables (movables, threshold, insn_count, loop_start, end, nregs)
|
||||||
/* Because the USAGE information potentially
|
/* Because the USAGE information potentially
|
||||||
contains objects other than hard registers
|
contains objects other than hard registers
|
||||||
we need to copy it. */
|
we need to copy it. */
|
||||||
CALL_INSN_FUNCTION_USAGE (i1) =
|
if (CALL_INSN_FUNCTION_USAGE (temp))
|
||||||
copy_rtx (CALL_INSN_FUNCTION_USAGE (temp));
|
CALL_INSN_FUNCTION_USAGE (i1) =
|
||||||
|
copy_rtx (CALL_INSN_FUNCTION_USAGE (temp));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
i1 = emit_insn_before (body, loop_start);
|
i1 = emit_insn_before (body, loop_start);
|
||||||
|
@ -1834,8 +1835,9 @@ move_movables (movables, threshold, insn_count, loop_start, end, nregs)
|
||||||
/* Because the USAGE information potentially
|
/* Because the USAGE information potentially
|
||||||
contains objects other than hard registers
|
contains objects other than hard registers
|
||||||
we need to copy it. */
|
we need to copy it. */
|
||||||
CALL_INSN_FUNCTION_USAGE (i1) =
|
if (CALL_INSN_FUNCTION_USAGE (p))
|
||||||
copy_rtx (CALL_INSN_FUNCTION_USAGE (p));
|
CALL_INSN_FUNCTION_USAGE (i1) =
|
||||||
|
copy_rtx (CALL_INSN_FUNCTION_USAGE (p));
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
i1 = emit_insn_before (PATTERN (p), loop_start);
|
i1 = emit_insn_before (PATTERN (p), loop_start);
|
||||||
|
|
Loading…
Reference in New Issue