re PR middle-end/52045 (ICE: in execute_todo, at passes.c:1748 with -O3 -ftracer...
authorRichard Guenther <rguenther@suse.de>
Mon, 30 Jan 2012 13:39:12 +0000 (13:39 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 30 Jan 2012 13:39:12 +0000 (13:39 +0000)
2012-01-30  Richard Guenther  <rguenther@suse.de>

PR tree-optimization/52045
* ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
before computing final todo.

From-SVN: r183721

gcc/ChangeLog
gcc/ipa-inline-transform.c

index 1d0b459a4ec1c03df702a05e23e8a500c8a61ebd..9414b24b0578cf85795ab29389665d776fab9eb2 100644 (file)
@@ -1,3 +1,9 @@
+2012-01-30  Richard Guenther  <rguenther@suse.de>
+
+       PR tree-optimization/52045
+       * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg
+       before computing final todo.
+
 2012-01-30  Richard Guenther  <rguenther@suse.de>
 
        PR tree-optimization/51528
index 8196a137f05316cd3957cd6a66c33120120acc8a..75b8e9daf11f9d2dcf5908424e581c7372e9235b 100644 (file)
@@ -369,11 +369,13 @@ inline_transform (struct cgraph_node *node)
     todo = optimize_inline_calls (current_function_decl);
   timevar_pop (TV_INTEGRATION);
 
+  cfun->always_inline_functions_inlined = true;
+  cfun->after_inlining = true;
+  todo |= execute_fixup_cfg ();
+
   if (!(todo & TODO_update_ssa_any))
     /* Redirecting edges might lead to a need for vops to be recomputed.  */
     todo |= TODO_update_ssa_only_virtuals;
 
-  cfun->always_inline_functions_inlined = true;
-  cfun->after_inlining = true;
-  return todo | execute_fixup_cfg ();
+  return todo;
 }