From f8698b375afc829d817ba3fc3ab38929479a7222 Mon Sep 17 00:00:00 2001 From: Richard Guenther Date: Mon, 30 Jan 2012 13:39:12 +0000 Subject: [PATCH] re PR middle-end/52045 (ICE: in execute_todo, at passes.c:1748 with -O3 -ftracer -fno-tree-ccp -fno-tree-copy-prop -fno-tree-dce and stpcpy_chk()) 2012-01-30 Richard Guenther PR tree-optimization/52045 * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg before computing final todo. From-SVN: r183721 --- gcc/ChangeLog | 6 ++++++ gcc/ipa-inline-transform.c | 8 +++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 1d0b459a4ec..9414b24b057 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2012-01-30 Richard Guenther + + PR tree-optimization/52045 + * ipa-inline-transform.c (inline_transform): Call execute_fixup_cfg + before computing final todo. + 2012-01-30 Richard Guenther PR tree-optimization/51528 diff --git a/gcc/ipa-inline-transform.c b/gcc/ipa-inline-transform.c index 8196a137f05..75b8e9daf11 100644 --- a/gcc/ipa-inline-transform.c +++ b/gcc/ipa-inline-transform.c @@ -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; } -- 2.30.2