re PR rtl-optimization/57320 (Shrink-wrapping leaves unreachable blocks in the CFG)

PR rtl-optimization/57320
	* function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
	the CFG after thread_prologue_and_epilogue_insns.

From-SVN: r208551
This commit is contained in:
Steven Bosscher 2014-03-13 18:01:48 +00:00 committed by Jakub Jelinek
parent b0a8740278
commit bdc6e1ae29
2 changed files with 10 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
PR rtl-optimization/57320
* function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
the CFG after thread_prologue_and_epilogue_insns.
2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
PR rtl-optimization/57189

View File

@ -6991,6 +6991,10 @@ rest_of_handle_thread_prologue_and_epilogue (void)
scheduling to operate in the epilogue. */
thread_prologue_and_epilogue_insns ();
/* Shrink-wrapping can result in unreachable edges in the epilogue,
see PR57320. */
cleanup_cfg (0);
/* The stack usage info is finalized during prologue expansion. */
if (flag_stack_usage_info)
output_stack_usage ();