]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
re PR rtl-optimization/57320 (Shrink-wrapping leaves unreachable blocks in the CFG)
authorSteven Bosscher <steven@gcc.gnu.org>
Thu, 13 Mar 2014 18:01:48 +0000 (18:01 +0000)
committerJakub Jelinek <jakub@gcc.gnu.org>
Thu, 13 Mar 2014 18:01:48 +0000 (19:01 +0100)
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

gcc/ChangeLog
gcc/function.c

index 91b1e41559ef52c283038a643097ebd21cdb7e69..7591cae271bcece6bf0262f6ba71112f530829bf 100644 (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
index e67d3c1553f8802545ed6797fa16bf47c0f4da67..a61e4757c7a2ea93318e92f89253b9ac665a9426 100644 (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 ();