diff options
author | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-02 13:05:36 +0000 |
---|---|---|
committer | bonzini <bonzini@138bc75d-0d04-0410-961f-82ee72b054a4> | 2006-02-02 13:05:36 +0000 |
commit | 306d9c02ee0801d023909806fa094ff68a8578b8 (patch) | |
tree | e16c886c00e7c4c7bd7f6e4ba89378213ccc7f6a /gcc/tree-scalar-evolution.c | |
parent | 55d97af6b3edb27a7158cacef3149e71c81d7b4c (diff) | |
download | gcc-306d9c02ee0801d023909806fa094ff68a8578b8.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@110514 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-scalar-evolution.c')
-rw-r--r-- | gcc/tree-scalar-evolution.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gcc/tree-scalar-evolution.c b/gcc/tree-scalar-evolution.c index 3075839f3e7..462d78fb39e 100644 --- a/gcc/tree-scalar-evolution.c +++ b/gcc/tree-scalar-evolution.c @@ -2793,8 +2793,11 @@ scev_const_prop (void) ass = build2 (MODIFY_EXPR, void_type_node, rslt, NULL_TREE); SSA_NAME_DEF_STMT (rslt) = ass; - bsi_insert_after (&bsi, ass, BSI_NEW_STMT); - def = force_gimple_operand_bsi (&bsi, def, false, NULL_TREE); + { + block_stmt_iterator dest = bsi; + bsi_insert_before (&dest, ass, BSI_NEW_STMT); + def = force_gimple_operand_bsi (&dest, def, false, NULL_TREE); + } TREE_OPERAND (ass, 1) = def; update_stmt (ass); } |