From c6540bdeb4a50fadc96f5b0087cca5602ad04845 Mon Sep 17 00:00:00 2001 From: Zdenek Dvorak Date: Tue, 10 Jul 2007 01:04:06 +0200 Subject: 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 --- gcc/tree-ssa-loop-ivopts.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'gcc/tree-ssa-loop-ivopts.c') 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. */ -- cgit v1.2.1