aboutsummaryrefslogtreecommitdiff
path: root/gcc/tree-ssa-threadupdate.c
diff options
context:
space:
mode:
authorDiego Novillo <dnovillo@google.com>2007-09-07 16:38:46 +0000
committerDiego Novillo <dnovillo@google.com>2007-09-07 16:38:46 +0000
commitf910e0f0729d3a66cc28a70c28f78658ddb064d4 (patch)
tree64b3c5dbf6e7dd437d93c22279822b894ac0ccce /gcc/tree-ssa-threadupdate.c
parentcb3458b2f26d73def1454261c0122bea4e7c2cb9 (diff)
* tree-flow.h (const_block_stmt_iterator): Remove.
Update all users to use block_stmt_iterator. * tree-iterator.h (const_tree_stmt_iterator): Remove. Update all users to use tree_stmt_iterator. git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@128246 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/tree-ssa-threadupdate.c')
-rw-r--r--gcc/tree-ssa-threadupdate.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/gcc/tree-ssa-threadupdate.c b/gcc/tree-ssa-threadupdate.c
index d4d9ee53788..1d5500fe018 100644
--- a/gcc/tree-ssa-threadupdate.c
+++ b/gcc/tree-ssa-threadupdate.c
@@ -461,26 +461,26 @@ redirect_edges (void **slot, void *data)
is one, this is equivalent to a "forwarder" block. */
static bool
-redirection_block_p (const_basic_block bb)
+redirection_block_p (basic_block bb)
{
- const_block_stmt_iterator bsi;
+ block_stmt_iterator bsi;
/* Advance to the first executable statement. */
- bsi = cbsi_start (bb);
- while (!cbsi_end_p (bsi)
- && (TREE_CODE (cbsi_stmt (bsi)) == LABEL_EXPR
- || IS_EMPTY_STMT (cbsi_stmt (bsi))))
- cbsi_next (&bsi);
+ bsi = bsi_start (bb);
+ while (!bsi_end_p (bsi)
+ && (TREE_CODE (bsi_stmt (bsi)) == LABEL_EXPR
+ || IS_EMPTY_STMT (bsi_stmt (bsi))))
+ bsi_next (&bsi);
/* Check if this is an empty block. */
- if (cbsi_end_p (bsi))
+ if (bsi_end_p (bsi))
return true;
/* Test that we've reached the terminating control statement. */
- return cbsi_stmt (bsi)
- && (TREE_CODE (cbsi_stmt (bsi)) == COND_EXPR
- || TREE_CODE (cbsi_stmt (bsi)) == GOTO_EXPR
- || TREE_CODE (cbsi_stmt (bsi)) == SWITCH_EXPR);
+ return bsi_stmt (bsi)
+ && (TREE_CODE (bsi_stmt (bsi)) == COND_EXPR
+ || TREE_CODE (bsi_stmt (bsi)) == GOTO_EXPR
+ || TREE_CODE (bsi_stmt (bsi)) == SWITCH_EXPR);
}
/* BB is a block which ends with a COND_EXPR or SWITCH_EXPR and when BB