Commit 1e6a5d3c by Kazu Hirata Committed by Kazu Hirata

tree-flow-inline.h (get_stmt_operands): Remove.

	* tree-flow-inline.h (get_stmt_operands): Remove.
	* lambda-code.c, tree-ssa-loop-unswitch.c,
	tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
	tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
	tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
	calls to get_stmt_operands.
	* doc/tree-ssa.texi: Don't mention get_stmt_operands.

From-SVN: r98262
parent 911204fe
...@@ -7,6 +7,14 @@ ...@@ -7,6 +7,14 @@
* c-parser.c (N_C_TTYPES): Remove. * c-parser.c (N_C_TTYPES): Remove.
* tree-flow-inline.h (get_stmt_operands): Remove.
* lambda-code.c, tree-ssa-loop-unswitch.c,
tree-ssa-operands.c, tree-ssa-pre.c, tree-ssa-propagate.c,
tree-ssa-sink.c, tree-ssa.c, tree-tailcall.c,
tree-vect-transform.c, tree-vectorizer.c, tree-vrp.c): Remove
calls to get_stmt_operands.
* doc/tree-ssa.texi: Don't mention get_stmt_operands.
2005-04-17 Richard Henderson <rth@redhat.com> 2005-04-17 Richard Henderson <rth@redhat.com>
PR target/20375 PR target/20375
......
...@@ -886,15 +886,14 @@ print_ops (tree stmt) ...@@ -886,15 +886,14 @@ print_ops (tree stmt)
@} @}
@end smallexample @end smallexample
Operands were once updated lazily via calls to @code{get_stmt_operands}. Operands are updated as soon as the statement is finished via a call
This function is now deprecated and operands are updated as soon as the to @code{update_stmt}. If statement elements are changed via
statement is finished via a call to @code{update_stmt}. If statement elements @code{SET_USE} or @code{SET_DEF}, then no further action is required
are changed via @code{SET_USE} or @code{SET_DEF}, then no further action is (ie, those macros take care of updating the statement). If changes
required (ie, those macros take care of updating the statement). If are made by manipulating the statement's tree directly, then a call
changes are made by manipulating the statement's tree directly, then a call
must be made to @code{update_stmt} when complete. Calling one of the must be made to @code{update_stmt} when complete. Calling one of the
@code{bsi_insert} routines or @code{bsi_replace} performs an implicit call @code{bsi_insert} routines or @code{bsi_replace} performs an implicit
to @code{update_stmt}. call to @code{update_stmt}.
@subsection Operand Iterators @subsection Operand Iterators
@cindex Operand Iterators @cindex Operand Iterators
......
...@@ -1294,7 +1294,6 @@ gcc_loop_to_lambda_loop (struct loop *loop, int depth, ...@@ -1294,7 +1294,6 @@ gcc_loop_to_lambda_loop (struct loop *loop, int depth,
phi = SSA_NAME_DEF_STMT (inductionvar); phi = SSA_NAME_DEF_STMT (inductionvar);
if (TREE_CODE (phi) != PHI_NODE) if (TREE_CODE (phi) != PHI_NODE)
{ {
get_stmt_operands (phi);
uses = STMT_USE_OPS (phi); uses = STMT_USE_OPS (phi);
if (!uses) if (!uses)
......
...@@ -4730,9 +4730,6 @@ tree_duplicate_bb (basic_block bb) ...@@ -4730,9 +4730,6 @@ tree_duplicate_bb (basic_block bb)
if (TREE_CODE (stmt) == LABEL_EXPR) if (TREE_CODE (stmt) == LABEL_EXPR)
continue; continue;
/* Record the definitions. */
get_stmt_operands (stmt);
FOR_EACH_SSA_TREE_OPERAND (val, stmt, op_iter, SSA_OP_ALL_DEFS) FOR_EACH_SSA_TREE_OPERAND (val, stmt, op_iter, SSA_OP_ALL_DEFS)
mark_for_rewrite (val); mark_for_rewrite (val);
...@@ -4946,7 +4943,6 @@ rewrite_to_new_ssa_names_bb (basic_block bb, htab_t map) ...@@ -4946,7 +4943,6 @@ rewrite_to_new_ssa_names_bb (basic_block bb, htab_t map)
for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi)) for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi))
{ {
stmt = bsi_stmt (bsi); stmt = bsi_stmt (bsi);
get_stmt_operands (stmt);
ann = stmt_ann (stmt); ann = stmt_ann (stmt);
uses = USE_OPS (ann); uses = USE_OPS (ann);
......
...@@ -172,27 +172,6 @@ update_stmt_if_modified (tree t) ...@@ -172,27 +172,6 @@ update_stmt_if_modified (tree t)
update_stmt_operands (t); update_stmt_operands (t);
} }
static inline void
get_stmt_operands (tree stmt ATTRIBUTE_UNUSED)
{
#ifdef ENABLE_CHECKING
stmt_ann_t ann;
/* The optimizers cannot handle statements that are nothing but a
_DECL. This indicates a bug in the gimplifier. */
gcc_assert (!SSA_VAR_P (stmt));
/* Ignore error statements. */
if (TREE_CODE (stmt) == ERROR_MARK)
return;
ann = get_stmt_ann (stmt);
gcc_assert (!ann->modified);
return;
#endif
}
/* Return true if T is marked as modified, false otherwise. */ /* Return true if T is marked as modified, false otherwise. */
static inline bool static inline bool
stmt_modified_p (tree t) stmt_modified_p (tree t)
......
...@@ -1885,7 +1885,6 @@ rewrite_trees (var_map map, tree *values) ...@@ -1885,7 +1885,6 @@ rewrite_trees (var_map map, tree *values)
stmt_ann_t ann; stmt_ann_t ann;
ssa_op_iter iter; ssa_op_iter iter;
get_stmt_operands (stmt);
ann = stmt_ann (stmt); ann = stmt_ann (stmt);
changed = false; changed = false;
......
...@@ -656,7 +656,6 @@ compute_points_to_and_addr_escape (struct alias_info *ai) ...@@ -656,7 +656,6 @@ compute_points_to_and_addr_escape (struct alias_info *ai)
statement. Note that this will miss all the addresses taken statement. Note that this will miss all the addresses taken
in PHI nodes (those are discovered while following the use-def in PHI nodes (those are discovered while following the use-def
chains). */ chains). */
get_stmt_operands (stmt);
addr_taken = addresses_taken (stmt); addr_taken = addresses_taken (stmt);
if (addr_taken) if (addr_taken)
EXECUTE_IF_SET_IN_BITMAP (addr_taken, 0, i, bi) EXECUTE_IF_SET_IN_BITMAP (addr_taken, 0, i, bi)
......
...@@ -475,8 +475,6 @@ likely_value (tree stmt) ...@@ -475,8 +475,6 @@ likely_value (tree stmt)
&& TREE_CODE (stmt) != SWITCH_EXPR) && TREE_CODE (stmt) != SWITCH_EXPR)
return VARYING; return VARYING;
get_stmt_operands (stmt);
found_constant = false; found_constant = false;
FOR_EACH_SSA_TREE_OPERAND (use, stmt, iter, SSA_OP_USE|SSA_OP_VUSE) FOR_EACH_SSA_TREE_OPERAND (use, stmt, iter, SSA_OP_USE|SSA_OP_VUSE)
{ {
...@@ -525,8 +523,6 @@ ccp_initialize (void) ...@@ -525,8 +523,6 @@ ccp_initialize (void)
bool is_varying = false; bool is_varying = false;
tree stmt = bsi_stmt (i); tree stmt = bsi_stmt (i);
get_stmt_operands (stmt);
if (likely_value (stmt) == VARYING) if (likely_value (stmt) == VARYING)
{ {
......
...@@ -355,8 +355,6 @@ mark_stmt_if_obviously_necessary (tree stmt, bool aggressive) ...@@ -355,8 +355,6 @@ mark_stmt_if_obviously_necessary (tree stmt, bool aggressive)
return; return;
} }
get_stmt_operands (stmt);
FOR_EACH_SSA_TREE_OPERAND (def, stmt, iter, SSA_OP_DEF) FOR_EACH_SSA_TREE_OPERAND (def, stmt, iter, SSA_OP_DEF)
{ {
if (is_global_var (SSA_NAME_VAR (def))) if (is_global_var (SSA_NAME_VAR (def)))
...@@ -539,8 +537,6 @@ propagate_necessity (struct edge_list *el) ...@@ -539,8 +537,6 @@ propagate_necessity (struct edge_list *el)
ssa_op_iter iter; ssa_op_iter iter;
tree use; tree use;
get_stmt_operands (i);
/* The operands of V_MAY_DEF expressions are also needed as they /* The operands of V_MAY_DEF expressions are also needed as they
represent potential definitions that may reach this represent potential definitions that may reach this
statement (V_MAY_DEF operands allow us to follow def-def statement (V_MAY_DEF operands allow us to follow def-def
......
...@@ -178,7 +178,6 @@ dse_optimize_stmt (struct dom_walk_data *walk_data, ...@@ -178,7 +178,6 @@ dse_optimize_stmt (struct dom_walk_data *walk_data,
stmt_ann_t ann = stmt_ann (stmt); stmt_ann_t ann = stmt_ann (stmt);
v_may_def_optype v_may_defs; v_may_def_optype v_may_defs;
get_stmt_operands (stmt);
v_may_defs = V_MAY_DEF_OPS (ann); v_may_defs = V_MAY_DEF_OPS (ann);
/* If this statement has no virtual defs, then there is nothing /* If this statement has no virtual defs, then there is nothing
......
...@@ -367,7 +367,6 @@ create_ssa_var_map (int flags) ...@@ -367,7 +367,6 @@ create_ssa_var_map (int flags)
for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi)) for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi))
{ {
stmt = bsi_stmt (bsi); stmt = bsi_stmt (bsi);
get_stmt_operands (stmt);
/* Register USE and DEF operands in each statement. */ /* Register USE and DEF operands in each statement. */
FOR_EACH_SSA_TREE_OPERAND (use , stmt, iter, SSA_OP_USE) FOR_EACH_SSA_TREE_OPERAND (use , stmt, iter, SSA_OP_USE)
...@@ -612,7 +611,6 @@ calculate_live_on_entry (var_map map) ...@@ -612,7 +611,6 @@ calculate_live_on_entry (var_map map)
for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi)) for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi))
{ {
stmt = bsi_stmt (bsi); stmt = bsi_stmt (bsi);
get_stmt_operands (stmt);
FOR_EACH_SSA_TREE_OPERAND (op, stmt, iter, SSA_OP_USE) FOR_EACH_SSA_TREE_OPERAND (op, stmt, iter, SSA_OP_USE)
{ {
...@@ -1324,8 +1322,6 @@ build_tree_conflict_graph (tree_live_info_p liveinfo, tpa_p tpa, ...@@ -1324,8 +1322,6 @@ build_tree_conflict_graph (tree_live_info_p liveinfo, tpa_p tpa,
bool is_a_copy = false; bool is_a_copy = false;
tree stmt = bsi_stmt (bsi); tree stmt = bsi_stmt (bsi);
get_stmt_operands (stmt);
/* A copy between 2 partitions does not introduce an interference /* A copy between 2 partitions does not introduce an interference
by itself. If they did, you would never be able to coalesce by itself. If they did, you would never be able to coalesce
two things which are copied. If the two variables really do two things which are copied. If the two variables really do
......
...@@ -220,8 +220,6 @@ movement_possibility (tree stmt) ...@@ -220,8 +220,6 @@ movement_possibility (tree stmt)
{ {
/* If we perform unswitching, force the operands of the invariant /* If we perform unswitching, force the operands of the invariant
condition to be moved out of the loop. */ condition to be moved out of the loop. */
get_stmt_operands (stmt);
return MOVE_POSSIBLE; return MOVE_POSSIBLE;
} }
...@@ -231,8 +229,6 @@ movement_possibility (tree stmt) ...@@ -231,8 +229,6 @@ movement_possibility (tree stmt)
if (stmt_ends_bb_p (stmt)) if (stmt_ends_bb_p (stmt))
return MOVE_IMPOSSIBLE; return MOVE_IMPOSSIBLE;
get_stmt_operands (stmt);
if (stmt_ann (stmt)->has_volatile_ops) if (stmt_ann (stmt)->has_volatile_ops)
return MOVE_IMPOSSIBLE; return MOVE_IMPOSSIBLE;
...@@ -622,7 +618,6 @@ determine_invariantness_stmt (struct dom_walk_data *dw_data ATTRIBUTE_UNUSED, ...@@ -622,7 +618,6 @@ determine_invariantness_stmt (struct dom_walk_data *dw_data ATTRIBUTE_UNUSED,
The multiply stmt is not invariant, so update iterator The multiply stmt is not invariant, so update iterator
and avoid rescanning. */ and avoid rescanning. */
bsi_replace (&bsi, stmt1, true); bsi_replace (&bsi, stmt1, true);
get_stmt_operands (stmt1); /* Should not be necessary. */
bsi_insert_after (&bsi, stmt2, BSI_NEW_STMT); bsi_insert_after (&bsi, stmt2, BSI_NEW_STMT);
SSA_NAME_DEF_STMT (lhs) = stmt2; SSA_NAME_DEF_STMT (lhs) = stmt2;
......
...@@ -1553,7 +1553,6 @@ find_invariants_stmt (struct ivopts_data *data, tree stmt) ...@@ -1553,7 +1553,6 @@ find_invariants_stmt (struct ivopts_data *data, tree stmt)
n = PHI_NUM_ARGS (stmt); n = PHI_NUM_ARGS (stmt);
else else
{ {
get_stmt_operands (stmt);
uses = STMT_USE_OPS (stmt); uses = STMT_USE_OPS (stmt);
n = NUM_USES (uses); n = NUM_USES (uses);
} }
...@@ -4994,8 +4993,6 @@ protect_loop_closed_ssa_form (edge exit, tree stmt) ...@@ -4994,8 +4993,6 @@ protect_loop_closed_ssa_form (edge exit, tree stmt)
v_may_def_optype v_may_defs; v_may_def_optype v_may_defs;
unsigned i; unsigned i;
get_stmt_operands (stmt);
uses = STMT_USE_OPS (stmt); uses = STMT_USE_OPS (stmt);
for (i = 0; i < NUM_USES (uses); i++) for (i = 0; i < NUM_USES (uses); i++)
protect_loop_closed_ssa_form_use (exit, USE_OP_PTR (uses, i)); protect_loop_closed_ssa_form_use (exit, USE_OP_PTR (uses, i));
......
...@@ -256,8 +256,6 @@ find_uses_to_rename_stmt (tree stmt, bitmap *use_blocks) ...@@ -256,8 +256,6 @@ find_uses_to_rename_stmt (tree stmt, bitmap *use_blocks)
tree var; tree var;
basic_block bb = bb_for_stmt (stmt); basic_block bb = bb_for_stmt (stmt);
get_stmt_operands (stmt);
FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_ALL_USES | SSA_OP_ALL_KILLS) FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_ALL_USES | SSA_OP_ALL_KILLS)
find_uses_to_rename_use (bb, var, use_blocks); find_uses_to_rename_use (bb, var, use_blocks);
} }
...@@ -402,8 +400,6 @@ check_loop_closed_ssa_stmt (basic_block bb, tree stmt) ...@@ -402,8 +400,6 @@ check_loop_closed_ssa_stmt (basic_block bb, tree stmt)
ssa_op_iter iter; ssa_op_iter iter;
tree var; tree var;
get_stmt_operands (stmt);
FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_ALL_USES) FOR_EACH_SSA_TREE_OPERAND (var, stmt, iter, SSA_OP_ALL_USES)
check_loop_closed_ssa_use (bb, var); check_loop_closed_ssa_use (bb, var);
} }
......
...@@ -1028,7 +1028,6 @@ chain_of_csts_start (struct loop *loop, tree x) ...@@ -1028,7 +1028,6 @@ chain_of_csts_start (struct loop *loop, tree x)
if (TREE_CODE (stmt) != MODIFY_EXPR) if (TREE_CODE (stmt) != MODIFY_EXPR)
return NULL_TREE; return NULL_TREE;
get_stmt_operands (stmt);
if (NUM_VUSES (STMT_VUSE_OPS (stmt)) > 0) if (NUM_VUSES (STMT_VUSE_OPS (stmt)) > 0)
return NULL_TREE; return NULL_TREE;
if (NUM_V_MAY_DEFS (STMT_V_MAY_DEF_OPS (stmt)) > 0) if (NUM_V_MAY_DEFS (STMT_V_MAY_DEF_OPS (stmt)) > 0)
......
...@@ -128,7 +128,6 @@ tree_may_unswitch_on (basic_block bb, struct loop *loop) ...@@ -128,7 +128,6 @@ tree_may_unswitch_on (basic_block bb, struct loop *loop)
return NULL_TREE; return NULL_TREE;
/* Condition must be invariant. */ /* Condition must be invariant. */
get_stmt_operands (stmt);
uses = STMT_USE_OPS (stmt); uses = STMT_USE_OPS (stmt);
for (i = 0; i < NUM_USES (uses); i++) for (i = 0; i < NUM_USES (uses); i++)
{ {
......
...@@ -50,8 +50,6 @@ Boston, MA 02111-1307, USA. */ ...@@ -50,8 +50,6 @@ Boston, MA 02111-1307, USA. */
The routines in this file are concerned with creating this operand cache The routines in this file are concerned with creating this operand cache
from a stmt tree. from a stmt tree.
get_stmt_operands() in the primary entry point.
The operand tree is the parsed by the various get_* routines which look The operand tree is the parsed by the various get_* routines which look
through the stmt tree for the occurrence of operands which may be of through the stmt tree for the occurrence of operands which may be of
interest, and calls are made to the append_* routines whenever one is interest, and calls are made to the append_* routines whenever one is
...@@ -81,7 +79,7 @@ Boston, MA 02111-1307, USA. */ ...@@ -81,7 +79,7 @@ Boston, MA 02111-1307, USA. */
*/ */
/* Flags to describe operand properties in get_stmt_operands and helpers. */ /* Flags to describe operand properties in helpers. */
/* By default, operands are loaded. */ /* By default, operands are loaded. */
#define opf_none 0 #define opf_none 0
...@@ -520,9 +518,7 @@ finalize_ssa_uses (use_optype *old_ops_p, tree stmt) ...@@ -520,9 +518,7 @@ finalize_ssa_uses (use_optype *old_ops_p, tree stmt)
{ {
unsigned x; unsigned x;
/* If the pointer to the operand is the statement itself, something is /* If the pointer to the operand is the statement itself, something is
wrong. It means that we are pointing to a local variable (the wrong. It means that we are pointing to a local variable. */
initial call to get_stmt_operands does not pass a pointer to a
statement). */
for (x = 0; x < num; x++) for (x = 0; x < num; x++)
gcc_assert (*(VARRAY_TREE_PTR (build_uses, x)) != stmt); gcc_assert (*(VARRAY_TREE_PTR (build_uses, x)) != stmt);
} }
...@@ -1219,9 +1215,7 @@ swap_tree_operands (tree *exp0, tree *exp1) ...@@ -1219,9 +1215,7 @@ swap_tree_operands (tree *exp0, tree *exp1)
*exp1 = op0; *exp1 = op0;
} }
/* Get the operands of statement STMT. Note that repeated calls to /* Get the operands of statement STMT. */
get_stmt_operands for the same statement will do nothing until the
statement is marked modified by a call to mark_stmt_modified(). */
void void
update_stmt_operands (tree stmt) update_stmt_operands (tree stmt)
...@@ -1229,8 +1223,7 @@ update_stmt_operands (tree stmt) ...@@ -1229,8 +1223,7 @@ update_stmt_operands (tree stmt)
stmt_ann_t ann; stmt_ann_t ann;
stmt_operands_t old_operands; stmt_operands_t old_operands;
/* If get_stmt_operands is called before SSA is initialized, dont /* Don't do anything if we are called before SSA is initialized. */
do anything. */
if (build_defs == NULL) if (build_defs == NULL)
return; return;
/* The optimizers cannot handle statements that are nothing but a /* The optimizers cannot handle statements that are nothing but a
...@@ -1249,9 +1242,7 @@ update_stmt_operands (tree stmt) ...@@ -1249,9 +1242,7 @@ update_stmt_operands (tree stmt)
build_ssa_operands (stmt, ann, &old_operands, &(ann->operands)); build_ssa_operands (stmt, ann, &old_operands, &(ann->operands));
free_ssa_operands (&old_operands); free_ssa_operands (&old_operands);
/* Clear the modified bit for STMT. Subsequent calls to /* Clear the modified bit for STMT. */
get_stmt_operands for this statement will do nothing until the
statement is marked modified by a call to mark_stmt_modified(). */
ann->modified = 0; ann->modified = 0;
timevar_pop (TV_TREE_OPS); timevar_pop (TV_TREE_OPS);
......
...@@ -1958,7 +1958,6 @@ compute_avail (void) ...@@ -1958,7 +1958,6 @@ compute_avail (void)
stmt = bsi_stmt (bsi); stmt = bsi_stmt (bsi);
ann = stmt_ann (stmt); ann = stmt_ann (stmt);
get_stmt_operands (stmt);
/* We are only interested in assignments of the form /* We are only interested in assignments of the form
X_i = EXPR, where EXPR represents an "interesting" X_i = EXPR, where EXPR represents an "interesting"
...@@ -2176,8 +2175,6 @@ remove_dead_inserted_code (void) ...@@ -2176,8 +2175,6 @@ remove_dead_inserted_code (void)
ssa_op_iter iter; ssa_op_iter iter;
tree use; tree use;
get_stmt_operands (t);
/* The operands of V_MAY_DEF expressions are also needed as they /* The operands of V_MAY_DEF expressions are also needed as they
represent potential definitions that may reach this represent potential definitions that may reach this
statement (V_MAY_DEF operands allow us to follow def-def statement (V_MAY_DEF operands allow us to follow def-def
......
...@@ -1032,8 +1032,6 @@ substitute_and_fold (prop_value_t *prop_value) ...@@ -1032,8 +1032,6 @@ substitute_and_fold (prop_value_t *prop_value)
bool replaced_address, did_replace; bool replaced_address, did_replace;
tree stmt = bsi_stmt (i); tree stmt = bsi_stmt (i);
get_stmt_operands (stmt);
/* Replace the statement with its folded version and mark it /* Replace the statement with its folded version and mark it
folded. */ folded. */
if (dump_file && (dump_flags & TDF_DETAILS)) if (dump_file && (dump_flags & TDF_DETAILS))
......
...@@ -462,7 +462,6 @@ sink_code_in_bb (basic_block bb) ...@@ -462,7 +462,6 @@ sink_code_in_bb (basic_block bb)
tree stmt = bsi_stmt (bsi); tree stmt = bsi_stmt (bsi);
block_stmt_iterator tobsi; block_stmt_iterator tobsi;
tree sinkstmt; tree sinkstmt;
get_stmt_operands (stmt);
sinkstmt = statement_sink_location (stmt, bb); sinkstmt = statement_sink_location (stmt, bb);
if (!sinkstmt) if (!sinkstmt)
......
...@@ -930,10 +930,7 @@ tree_ssa_useless_type_conversion (tree expr) ...@@ -930,10 +930,7 @@ tree_ssa_useless_type_conversion (tree expr)
bool bool
stmt_references_memory_p (tree stmt) stmt_references_memory_p (tree stmt)
{ {
stmt_ann_t ann; stmt_ann_t ann = stmt_ann (stmt);
get_stmt_operands (stmt);
ann = stmt_ann (stmt);
if (ann->has_volatile_ops) if (ann->has_volatile_ops)
return true; return true;
......
...@@ -394,8 +394,6 @@ find_tail_calls (basic_block bb, struct tailcall **ret) ...@@ -394,8 +394,6 @@ find_tail_calls (basic_block bb, struct tailcall **ret)
if (TREE_CODE (stmt) == LABEL_EXPR) if (TREE_CODE (stmt) == LABEL_EXPR)
continue; continue;
get_stmt_operands (stmt);
/* Check for a call. */ /* Check for a call. */
if (TREE_CODE (stmt) == MODIFY_EXPR) if (TREE_CODE (stmt) == MODIFY_EXPR)
{ {
...@@ -687,7 +685,6 @@ eliminate_tail_call (struct tailcall *t) ...@@ -687,7 +685,6 @@ eliminate_tail_call (struct tailcall *t)
block_stmt_iterator bsi; block_stmt_iterator bsi;
stmt = bsi_stmt (t->call_bsi); stmt = bsi_stmt (t->call_bsi);
get_stmt_operands (stmt);
ann = stmt_ann (stmt); ann = stmt_ann (stmt);
bb = t->call_block; bb = t->call_block;
......
...@@ -146,7 +146,6 @@ vect_create_index_for_vector_ref (loop_vec_info loop_vinfo) ...@@ -146,7 +146,6 @@ vect_create_index_for_vector_ref (loop_vec_info loop_vinfo)
create_iv (init, step, NULL_TREE, loop, &incr_bsi, insert_after, create_iv (init, step, NULL_TREE, loop, &incr_bsi, insert_after,
&indx_before_incr, &indx_after_incr); &indx_before_incr, &indx_after_incr);
incr = bsi_stmt (incr_bsi); incr = bsi_stmt (incr_bsi);
get_stmt_operands (incr);
set_stmt_info (stmt_ann (incr), new_stmt_vec_info (incr, loop_vinfo)); set_stmt_info (stmt_ann (incr), new_stmt_vec_info (incr, loop_vinfo));
return indx_before_incr; return indx_before_incr;
......
...@@ -282,7 +282,6 @@ rename_variables_in_bb (basic_block bb) ...@@ -282,7 +282,6 @@ rename_variables_in_bb (basic_block bb)
for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi)) for (bsi = bsi_start (bb); !bsi_end_p (bsi); bsi_next (&bsi))
{ {
stmt = bsi_stmt (bsi); stmt = bsi_stmt (bsi);
get_stmt_operands (stmt);
ann = stmt_ann (stmt); ann = stmt_ann (stmt);
uses = USE_OPS (ann); uses = USE_OPS (ann);
...@@ -1485,7 +1484,6 @@ new_loop_vec_info (struct loop *loop) ...@@ -1485,7 +1484,6 @@ new_loop_vec_info (struct loop *loop)
tree stmt = bsi_stmt (si); tree stmt = bsi_stmt (si);
stmt_ann_t ann; stmt_ann_t ann;
get_stmt_operands (stmt);
ann = stmt_ann (stmt); ann = stmt_ann (stmt);
set_stmt_info (ann, new_stmt_vec_info (stmt, res)); set_stmt_info (ann, new_stmt_vec_info (stmt, res));
} }
......
...@@ -1443,7 +1443,6 @@ maybe_add_assert_expr (basic_block bb) ...@@ -1443,7 +1443,6 @@ maybe_add_assert_expr (basic_block bb)
ssa_op_iter i; ssa_op_iter i;
stmt = bsi_stmt (si); stmt = bsi_stmt (si);
get_stmt_operands (stmt);
/* Mark all the SSA names used by STMT in bitmap FOUND. If STMT /* Mark all the SSA names used by STMT in bitmap FOUND. If STMT
is inside the sub-graph of a conditional block, when we is inside the sub-graph of a conditional block, when we
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment