From d8090d46bcdcd2eb490ecffeef24f5956de32310 Mon Sep 17 00:00:00 2001 From: Richard Kenner Date: Wed, 20 Sep 1995 14:16:34 -0400 Subject: (expand_inline_function): Do copy something setting the result register if... (expand_inline_function): Do copy something setting the result register if it is setting it to itself and has a REG_NOTE. From-SVN: r10383 --- gcc/integrate.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'gcc') diff --git a/gcc/integrate.c b/gcc/integrate.c index d00c632..f04f8b4 100644 --- a/gcc/integrate.c +++ b/gcc/integrate.c @@ -1699,6 +1699,11 @@ expand_inline_function (fndecl, parms, target, ignore, type, structure_value_add SET_DEST (new_set) = gen_reg_rtx (GET_MODE (SET_DEST (new_set))); } + /* If the source and destination are the same and it + has a note on it, keep the insn. */ + else if (rtx_equal_p (SET_DEST (set), SET_SRC (set)) + && REG_NOTES (insn) != 0) + copy = emit_insn (copy_rtx_and_substitute (pattern, map)); else break; } -- cgit v1.1