Commit e93044fc by Segher Boessenkool Committed by Segher Boessenkool

This fixes a bug in my r236491: on nvptx, functions without prologue

would not get an epilogue either.


	* function.c (thread_prologue_and_epilogue_insns): Commit the
	insertion of the epilogue.

From-SVN: r236545
parent c91a0948
2016-05-20 Segher Boessenkool <segher@kernel.crashing.org>
* function.c (thread_prologue_and_epilogue_insns): Commit the
insertion of the epilogue.
2016-05-20 Martin Jambor <mjambor@suse.cz>
PR tree-optimization/70884
......
......@@ -5966,6 +5966,7 @@ thread_prologue_and_epilogue_insns (void)
if (epilogue_seq)
{
insert_insn_on_edge (epilogue_seq, exit_fallthru_edge);
commit_edge_insertions ();
/* The epilogue insns we inserted may cause the exit edge to no longer
be fallthru. */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment