diff options
author | Paolo Bonzini <bonzini@gnu.org> | 2006-02-02 13:05:36 +0000 |
---|---|---|
committer | Paolo Bonzini <bonzini@gcc.gnu.org> | 2006-02-02 13:05:36 +0000 |
commit | 35771d345fbe800cb3769316ffe874909bccdc4b (patch) | |
tree | e16c886c00e7c4c7bd7f6e4ba89378213ccc7f6a /gcc/tree-if-conv.c | |
parent | 8843c120f1f0a562b0250c59ec66317feae2fb0c (diff) | |
download | gcc-35771d345fbe800cb3769316ffe874909bccdc4b.zip gcc-35771d345fbe800cb3769316ffe874909bccdc4b.tar.gz gcc-35771d345fbe800cb3769316ffe874909bccdc4b.tar.bz2 |
tree-flow-inline.h (bsi_after_labels): Rewrite, return what its name says.
2006-02-02 Paolo Bonzini <bonzini@gnu.org>
* tree-flow-inline.h (bsi_after_labels): Rewrite, return
what its name says.
* lambda-code.c (perfect_nestify): Use bsi_insert_before on
bsi_after_labels iterator.
* tree-if-conv.c (find_phi_replacement_condition,
replace_phi_with_cond_modify_expr): Likewise.
* tree-scalar-evolution.c (scev_const_prop): Likewise.
* tree-ssa-loop-ivopts.c (compute_phi_arg_on_exit): Likewise.
From-SVN: r110514
Diffstat (limited to 'gcc/tree-if-conv.c')
-rw-r--r-- | gcc/tree-if-conv.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/gcc/tree-if-conv.c b/gcc/tree-if-conv.c index 8c41e94..97deb28 100644 --- a/gcc/tree-if-conv.c +++ b/gcc/tree-if-conv.c @@ -737,8 +737,7 @@ find_phi_replacement_condition (struct loop *loop, tree new_stmt; new_stmt = ifc_temp_var (TREE_TYPE (*cond), unshare_expr (*cond)); - bsi_insert_after (bsi, new_stmt, BSI_SAME_STMT); - bsi_next (bsi); + bsi_insert_before (bsi, new_stmt, BSI_SAME_STMT); *cond = TREE_OPERAND (new_stmt, 0); } @@ -804,9 +803,7 @@ replace_phi_with_cond_modify_expr (tree phi, tree cond, basic_block true_bb, SSA_NAME_DEF_STMT (PHI_RESULT (phi)) = new_stmt; /* Insert using iterator. */ - bsi_insert_after (bsi, new_stmt, BSI_SAME_STMT); - bsi_next (bsi); - + bsi_insert_before (bsi, new_stmt, BSI_SAME_STMT); update_stmt (new_stmt); if (dump_file && (dump_flags & TDF_DETAILS)) |