emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE instead of replacing it.

* emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
        instead of replacing it.

From-SVN: r68547
This commit is contained in:
Richard Henderson 2003-06-26 13:46:47 -07:00 committed by Richard Henderson
parent 99af0d26bd
commit f6a1f3f6ca
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2003-06-26 Richard Henderson <rth@redhat.com>
* emit-rtl.c (try_split): Append to new CALL_INSN_FUNCTION_USAGE
instead of replacing it.
2003-06-26 Richard Henderson <rth@redhat.com> 2003-06-26 Richard Henderson <rth@redhat.com>
* flow.c (propagate_one_insn): Kill function return value * flow.c (propagate_one_insn): Kill function return value

View File

@ -3510,8 +3510,10 @@ try_split (pat, trial, last)
for (insn = insn_last; insn ; insn = PREV_INSN (insn)) for (insn = insn_last; insn ; insn = PREV_INSN (insn))
if (GET_CODE (insn) == CALL_INSN) if (GET_CODE (insn) == CALL_INSN)
{ {
CALL_INSN_FUNCTION_USAGE (insn) rtx *p = &CALL_INSN_FUNCTION_USAGE (insn);
= CALL_INSN_FUNCTION_USAGE (trial); while (*p)
p = &XEXP (*p, 1);
*p = CALL_INSN_FUNCTION_USAGE (trial);
SIBLING_CALL_P (insn) = SIBLING_CALL_P (trial); SIBLING_CALL_P (insn) = SIBLING_CALL_P (trial);
} }
} }