Hi,

this patch adds copying of SIBLING_CALL_P flag to new
call-instruction.  This behavior is by this patch consistent to the
try_split function in emit-rtl.c.  This patch is a prerequisite for my
updated sibling-tail-call optimization patch.

ChangeLog

2014-06-03  Kai Tietz  <kti...@redhat.com>

        * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
        from old call-instruction.

Tested for x86_64-unknown-linux-gnu.  Ok for apply?

Regards,
Kai

Index: recog.c
===================================================================
--- recog.c     (Revision 211195)
+++ recog.c     (Arbeitskopie)
@@ -3461,6 +3461,7 @@ peep2_attempt (basic_block bb, rtx insn, int match

       CALL_INSN_FUNCTION_USAGE (new_insn)
        = CALL_INSN_FUNCTION_USAGE (old_insn);
+      SIBLING_CALL_P (new_insn) = SIBLING_CALL_P (old_insn);

       for (note = REG_NOTES (old_insn);
           note;

Reply via email to