aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-loop-ivopts.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@redhat.com>2004-10-18 18:01:10 +0000
committerDiego Novillo <dnovillo@gcc.gnu.org>2004-10-18 14:01:10 -0400
commit1a1804c27017289c540fd8b193209a8598af858a (patch)
tree65fa2dda5884adcb69fca3aa5ca69487f2799ab4 /gcc/tree-ssa-loop-ivopts.c
parentbca9e17b5aade3e19ae49ff9c211510674b46a02 (diff)
downloadgcc-1a1804c27017289c540fd8b193209a8598af858a.zip
gcc-1a1804c27017289c540fd8b193209a8598af858a.tar.gz
gcc-1a1804c27017289c540fd8b193209a8598af858a.tar.bz2
tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi.
* tree-cfg.c (bsi_for_stmt): Rename from stmt_for_bsi. Update all callers. * tree-ssa.c (replace_immediate_uses): Call bsi_for_stmt. Don't call fold_stmt more than once, use bsi_replace. From-SVN: r89234
Diffstat (limited to 'gcc/tree-ssa-loop-ivopts.c')
-rw-r--r--gcc/tree-ssa-loop-ivopts.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gcc/tree-ssa-loop-ivopts.c b/gcc/tree-ssa-loop-ivopts.c
index 53d899d..a620aca 100644
--- a/gcc/tree-ssa-loop-ivopts.c
+++ b/gcc/tree-ssa-loop-ivopts.c
@@ -3878,7 +3878,7 @@ remove_statement (tree stmt, bool including_defined_name)
}
else
{
- block_stmt_iterator bsi = stmt_for_bsi (stmt);
+ block_stmt_iterator bsi = bsi_for_stmt (stmt);
bsi_remove (&bsi);
}
@@ -3916,7 +3916,7 @@ rewrite_use_nonlinear_expr (struct ivopts_data *data,
case MODIFY_EXPR:
tgt = TREE_OPERAND (use->stmt, 0);
- bsi = stmt_for_bsi (use->stmt);
+ bsi = bsi_for_stmt (use->stmt);
break;
default:
@@ -4055,7 +4055,7 @@ rewrite_use_address (struct ivopts_data *data,
{
tree comp = unshare_expr (get_computation (data->current_loop,
use, cand));
- block_stmt_iterator bsi = stmt_for_bsi (use->stmt);
+ block_stmt_iterator bsi = bsi_for_stmt (use->stmt);
tree stmts;
tree op = force_gimple_operand (comp, &stmts, true, NULL_TREE);
@@ -4074,7 +4074,7 @@ rewrite_use_compare (struct ivopts_data *data,
{
tree comp;
tree *op_p, cond, op, stmts, bound;
- block_stmt_iterator bsi = stmt_for_bsi (use->stmt);
+ block_stmt_iterator bsi = bsi_for_stmt (use->stmt);
enum tree_code compare;
if (may_eliminate_iv (data->current_loop,