summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/tree-inline.c8
2 files changed, 9 insertions, 4 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index bec1f6a0591..e770abe3a94 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2008-08-29 Jan Hubicka <jh@suse.cz>
+
+ * tree-inline.c (insert_init_stmt): Insert sequence even when
+ not in SSA form.
+
2008-08-29 Jeff Law <law@redhat.com>
* mn10300.c (mn10300_secondary_reload_class): We need secondary
diff --git a/gcc/tree-inline.c b/gcc/tree-inline.c
index eb95cc6624a..0f59d164925 100644
--- a/gcc/tree-inline.c
+++ b/gcc/tree-inline.c
@@ -1868,14 +1868,14 @@ insert_init_stmt (basic_block bb, gimple init_stmt)
i = gsi_start (seq);
gimple_regimplify_operands (init_stmt, &i);
- if (gimple_in_ssa_p (cfun)
- && init_stmt
+ if (init_stmt
&& !gimple_seq_empty_p (seq))
{
/* The replacement can expose previously unreferenced
variables. */
- for (i = gsi_start (seq); !gsi_end_p (i); gsi_next (&i))
- find_new_referenced_vars (gsi_stmt (i));
+ if (gimple_in_ssa_p (cfun))
+ for (i = gsi_start (seq); !gsi_end_p (i); gsi_next (&i))
+ find_new_referenced_vars (gsi_stmt (i));
/* Insert the gimplified sequence needed for INIT_STMT
after SI. INIT_STMT will be inserted after SEQ. */