aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Guenther <rguenther@suse.de>2011-06-21 12:07:19 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2011-06-21 12:07:19 +0000
commit55f01229f008b551dc407c0674657953b3adfb83 (patch)
treedb9fd840e61745affdfba3bd39993c51aa27a658 /gcc
parent5181cd6a44e01ef31320f2fd1f1a5c365e98a260 (diff)
downloadgcc-55f01229f008b551dc407c0674657953b3adfb83.zip
gcc-55f01229f008b551dc407c0674657953b3adfb83.tar.gz
gcc-55f01229f008b551dc407c0674657953b3adfb83.tar.bz2
ipa-inline-transform.c (inline_transform): Fix previous change.
2011-06-21 Richard Guenther <rguenther@suse.de> * ipa-inline-transform.c (inline_transform): Fix previous change. From-SVN: r175256
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ipa-inline-transform.c10
2 files changed, 10 insertions, 5 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index 317d057..1685fb2 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2011-06-21 Richard Guenther <rguenther@suse.de>
+
+ * ipa-inline-transform.c (inline_transform): Fix previous
+ change.
+
2011-06-21 Ira Rosen <ira.rosen@linaro.org>
PR tree-optimization/49478
diff --git a/gcc/ipa-inline-transform.c b/gcc/ipa-inline-transform.c
index 02d3e65..c329bea 100644
--- a/gcc/ipa-inline-transform.c
+++ b/gcc/ipa-inline-transform.c
@@ -364,13 +364,13 @@ inline_transform (struct cgraph_node *node)
timevar_push (TV_INTEGRATION);
if (node->callees)
- {
- todo = optimize_inline_calls (current_function_decl);
- /* Redirecting edges might lead to a need for vops to be recomputed. */
- todo |= TODO_update_ssa_only_virtuals;
- }
+ todo = optimize_inline_calls (current_function_decl);
timevar_pop (TV_INTEGRATION);
+ 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 ();