diff options
author | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-12 20:49:21 +0000 |
---|---|---|
committer | ebotcazou <ebotcazou@138bc75d-0d04-0410-961f-82ee72b054a4> | 2008-02-12 20:49:21 +0000 |
commit | 06b0fbf187c303b504ada9fcc9eba7404562d0c9 (patch) | |
tree | 5326bc0cc6a893136020f1071215c168b409676d /gcc/gimplify.c | |
parent | 3e2497897f478694fbbe32f2f996809f43c77965 (diff) | |
download | gcc-06b0fbf187c303b504ada9fcc9eba7404562d0c9.tar.gz |
PR middle-end/35136
* gimplify.c (force_gimple_operand_bsi): Move SSA renaming code from
here to...
(force_gimple_operand): ...here.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@132267 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gimplify.c')
-rw-r--r-- | gcc/gimplify.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gcc/gimplify.c b/gcc/gimplify.c index 04ed39c533a..bc576a0ca00 100644 --- a/gcc/gimplify.c +++ b/gcc/gimplify.c @@ -6629,6 +6629,14 @@ force_gimple_operand (tree expr, tree *stmts, bool simple, tree var) pop_gimplify_context (NULL); + if (*stmts && gimple_in_ssa_p (cfun)) + { + tree_stmt_iterator tsi; + + for (tsi = tsi_start (*stmts); !tsi_end_p (tsi); tsi_next (&tsi)) + mark_symbols_for_renaming (tsi_stmt (tsi)); + } + return expr; } @@ -6648,14 +6656,6 @@ force_gimple_operand_bsi (block_stmt_iterator *bsi, tree expr, expr = force_gimple_operand (expr, &stmts, simple_p, var); if (stmts) { - if (gimple_in_ssa_p (cfun)) - { - tree_stmt_iterator tsi; - - for (tsi = tsi_start (stmts); !tsi_end_p (tsi); tsi_next (&tsi)) - mark_symbols_for_renaming (tsi_stmt (tsi)); - } - if (before) bsi_insert_before (bsi, stmts, m); else |