summaryrefslogtreecommitdiff
path: root/gcc/ipa-inline-transform.c
diff options
context:
space:
mode:
authorrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-30 13:39:12 +0000
committerrguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4>2012-01-30 13:39:12 +0000
commite723655c9de36b169f2fb2d7f8a439c5a503e211 (patch)
treead46264783fe7ef571a3621cb78500bdd66ab788 /gcc/ipa-inline-transform.c
parentce0c5a57604a7575f4649d10e84d6ef7792cdb33 (diff)
downloadgcc-e723655c9de36b169f2fb2d7f8a439c5a503e211.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@183721 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ipa-inline-transform.c')
-rw-r--r--gcc/ipa-inline-transform.c8
1 files changed, 5 insertions, 3 deletions
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;
}