diff options
author | Zdenek Dvorak <dvorakz@suse.cz> | 2007-07-10 01:04:06 +0200 |
---|---|---|
committer | Zdenek Dvorak <rakdver@gcc.gnu.org> | 2007-07-09 23:04:06 +0000 |
commit | c6540bdeb4a50fadc96f5b0087cca5602ad04845 (patch) | |
tree | e5a7ffd19651ec8e341a482d405d293a6e720838 /gcc/tree-ssa-loop-ivopts.c | |
parent | 452ba14de17872cf0d51da73f6faa6b2f3668753 (diff) | |
download | gcc-c6540bdeb4a50fadc96f5b0087cca5602ad04845.tar.gz |
tree-scalar-evolution.c (scev_const_prop): Add arguments to force_gimple_operand_bsi.
* tree-scalar-evolution.c (scev_const_prop): Add arguments to
force_gimple_operand_bsi.
* tree-ssa-loop-ivopts.c (rewrite_use_nonlinear_expr,
rewrite_use_compare): Ditto.
* tree-ssa-address.c (gimplify_mem_ref_parts, create_mem_ref):
Ditto.
* tree-ssa-ifcombine.c (ifcombine_ifandif): Ditto.
* tree-ssa-loop-prefetch.c (issue_prefetch_ref): Ditto.
* lambda-code.c (replace_uses_equiv_to_x_with_y): Ditto.
* tree-profile.c (prepare_instrumented_value,
tree_gen_interval_profiler, tree_gen_pow2_profiler,
tree_gen_one_value_profiler, tree_gen_ic_profiler,
tree_gen_ic_func_profiler, tree_gen_average_profiler,
tree_gen_ior_profiler): Ditto.
* tree-ssa-reassoc.c (negate_value): Ditto.
* matrix-reorg.c (transform_access_sites, transform_allocation_sites):
Use force_gimple_operand_bsi.
* tree-vect-transform.c (vect_update_ivs_after_vectorizer): Ditto.
* tree-if-conv.c (add_to_dst_predicate_list,
find_phi_replacement_condition): Ditto.
* gimplify.c (force_gimple_operand_bsi): Add before and m arguments.
Call mark_symbols_for_renaming for new statements.
* tree-flow.h (force_gimple_operand_bsi): Declaration changed.
From-SVN: r126500
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r-- | gcc/tree-ssa-loop-ivopts.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c index f99a6ebf990..c67310032bc 100644 --- a/gcc/tree-ssa-loop-ivopts.c +++ b/gcc/tree-ssa-loop-ivopts.c @@ -4862,7 +4862,7 @@ rewrite_use_nonlinear_expr (struct ivopts_data *data, struct iv_use *use, struct iv_cand *cand) { tree comp; - tree op, stmts, tgt, ass; + tree op, tgt, ass; block_stmt_iterator bsi; /* An important special case -- if we are asked to express value of @@ -4947,9 +4947,8 @@ rewrite_use_nonlinear_expr (struct ivopts_data *data, gcc_unreachable (); } - op = force_gimple_operand (comp, &stmts, false, SSA_NAME_VAR (tgt)); - if (stmts) - bsi_insert_before (&bsi, stmts, BSI_SAME_STMT); + op = force_gimple_operand_bsi (&bsi, comp, false, SSA_NAME_VAR (tgt), + true, BSI_SAME_STMT); if (TREE_CODE (use->stmt) == PHI_NODE) { @@ -5115,7 +5114,8 @@ rewrite_use_compare (struct ivopts_data *data, compare = iv_elimination_compare (data, use); bound = unshare_expr (fold_convert (var_type, bound)); - op = force_gimple_operand_bsi (&bsi, bound, true, NULL_TREE); + op = force_gimple_operand_bsi (&bsi, bound, true, NULL_TREE, + true, BSI_SAME_STMT); *use->op_p = build2 (compare, boolean_type_node, var, op); return; @@ -5129,7 +5129,8 @@ rewrite_use_compare (struct ivopts_data *data, ok = extract_cond_operands (data, use->op_p, &var_p, NULL, NULL, NULL); gcc_assert (ok); - *var_p = force_gimple_operand_bsi (&bsi, comp, true, SSA_NAME_VAR (*var_p)); + *var_p = force_gimple_operand_bsi (&bsi, comp, true, SSA_NAME_VAR (*var_p), + true, BSI_SAME_STMT); } /* Rewrites USE using candidate CAND. */ |