function.c (thread_prologue_and_epilogue_insns): Emit split prologue on the orig_entry_edge.

* function.c (thread_prologue_and_epilogue_insns): Emit split
	prologue on the orig_entry_edge. Don't account for it in
	prologue_clobbered.

From-SVN: r179627
This commit is contained in:
Bernd Schmidt 2011-10-06 18:59:36 +00:00 committed by Bernd Schmidt
parent 69d2aade06
commit f4b31a33a2
2 changed files with 7 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2011-10-06 Bernd Schmidt <bernds@codesourcery.com>
* function.c (thread_prologue_and_epilogue_insns): Emit split
prologue on the orig_entry_edge. Don't account for it in
prologue_clobbered.
2011-10-06 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/50596

View File

@ -5602,10 +5602,6 @@ thread_prologue_and_epilogue_insns (void)
note_stores (PATTERN (p_insn), record_hard_reg_sets,
&prologue_clobbered);
}
for (p_insn = split_prologue_seq; p_insn; p_insn = NEXT_INSN (p_insn))
if (NONDEBUG_INSN_P (p_insn))
note_stores (PATTERN (p_insn), record_hard_reg_sets,
&prologue_clobbered);
bitmap_initialize (&bb_antic_flags, &bitmap_default_obstack);
bitmap_initialize (&bb_on_list, &bitmap_default_obstack);
@ -5758,7 +5754,7 @@ thread_prologue_and_epilogue_insns (void)
if (split_prologue_seq != NULL_RTX)
{
insert_insn_on_edge (split_prologue_seq, entry_edge);
insert_insn_on_edge (split_prologue_seq, orig_entry_edge);
inserted = true;
}
if (prologue_seq != NULL_RTX)