Commit d19e3ef6 by Kazu Hirata Committed by Kazu Hirata

tree-phinodes.c (remove_phi_node): Drop the last argument.

	* tree-phinodes.c (remove_phi_node): Drop the last argument.
	* tree-flow.h: Adjust the prototype for remove_phi_node.
	* lambda-code.c (perfect_nestify): Adjust a call to
	remove_phi_node.
	* tree-cfg.c
	(remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
	* tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
	Likewise.
	* tree-ssa-dce.c (remove_dead_phis): Likewise.
	* tree-ssa-loop-ivopts.c (remove_statement): Likewise.
	* tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
	* tree-ssa.c (kill_redundant_phi_nodes): Likewise.

From-SVN: r95932
parent 25f99665
......@@ -8,6 +8,19 @@
gensupport.c, jump.c, tree-phinodes.c, unwind-dw2-fde-glibc.c:
Update copyright.
* tree-phinodes.c (remove_phi_node): Drop the last argument.
* tree-flow.h: Adjust the prototype for remove_phi_node.
* lambda-code.c (perfect_nestify): Adjust a call to
remove_phi_node.
* tree-cfg.c
(remove_phi_nodes_and_edges_for_unreachable_block): Likewise.
* tree-outof-ssa.c (eliminate_virtual_phis, remove_ssa_form):
Likewise.
* tree-ssa-dce.c (remove_dead_phis): Likewise.
* tree-ssa-loop-ivopts.c (remove_statement): Likewise.
* tree-ssa-pre.c (remove_dead_inserted_code): Likewise.
* tree-ssa.c (kill_redundant_phi_nodes): Likewise.
2005-03-05 Richard Sandiford <rsandifo@redhat.com>
* doc/invoke.texi: Document new MIPS -msym32 and -mno-sym32 options.
......
......@@ -2327,7 +2327,7 @@ perfect_nestify (struct loops *loops,
while (phi_nodes (olddest) != NULL)
{
SET_PHI_RESULT (phi_nodes (olddest), NULL);
remove_phi_node (phi_nodes (olddest), NULL, olddest);
remove_phi_node (phi_nodes (olddest), NULL);
}
/* and add them back to the new basic block. */
......
......@@ -1997,7 +1997,7 @@ remove_phi_nodes_and_edges_for_unreachable_block (basic_block bb)
while (phi)
{
tree next = PHI_CHAIN (phi);
remove_phi_node (phi, NULL_TREE, bb);
remove_phi_node (phi, NULL_TREE);
phi = next;
}
......
......@@ -522,7 +522,7 @@ extern void reserve_phi_args_for_new_edge (basic_block);
extern tree create_phi_node (tree, basic_block);
extern void add_phi_arg (tree, tree, edge);
extern void remove_phi_args (edge);
extern void remove_phi_node (tree, tree, basic_block);
extern void remove_phi_node (tree, tree);
extern void remove_all_phi_nodes_for (bitmap);
extern tree phi_reverse (tree);
extern void dump_dfa_stats (FILE *);
......
......@@ -1030,7 +1030,7 @@ eliminate_virtual_phis (void)
}
}
#endif
remove_phi_node (phi, NULL_TREE, bb);
remove_phi_node (phi, NULL_TREE);
}
}
}
......@@ -2371,7 +2371,7 @@ remove_ssa_form (FILE *dump, var_map map, int flags)
for (phi = phi_nodes (bb); phi; phi = next)
{
next = PHI_CHAIN (phi);
remove_phi_node (phi, NULL_TREE, bb);
remove_phi_node (phi, NULL_TREE);
}
}
......
......@@ -402,7 +402,7 @@ remove_phi_args (edge e)
used as the node immediately before PHI in the linked list. */
void
remove_phi_node (tree phi, tree prev, basic_block bb)
remove_phi_node (tree phi, tree prev)
{
tree *loc;
......@@ -412,7 +412,7 @@ remove_phi_node (tree phi, tree prev, basic_block bb)
}
else
{
for (loc = &(bb_ann (bb)->phi_nodes);
for (loc = &(bb_ann (bb_for_stmt (phi))->phi_nodes);
*loc != phi;
loc = &PHI_CHAIN (*loc))
;
......
......@@ -684,7 +684,7 @@ remove_dead_phis (basic_block bb)
fprintf (dump_file, "\n");
}
remove_phi_node (phi, prev, bb);
remove_phi_node (phi, prev);
stats.removed_phis++;
phi = next;
}
......
......@@ -4652,7 +4652,7 @@ remove_statement (tree stmt, bool including_defined_name)
/* Prevent the ssa name defined by the statement from being removed. */
SET_PHI_RESULT (stmt, NULL);
}
remove_phi_node (stmt, NULL_TREE, bb_for_stmt (stmt));
remove_phi_node (stmt, NULL_TREE);
}
else
{
......
......@@ -2106,7 +2106,7 @@ remove_dead_inserted_code (void)
}
if (TREE_CODE (t) == PHI_NODE)
{
remove_phi_node (t, NULL, bb_for_stmt (t));
remove_phi_node (t, NULL);
}
else
{
......
......@@ -1288,7 +1288,7 @@ kill_redundant_phi_nodes (void)
if (repl != ssa_name (i))
{
stmt = SSA_NAME_DEF_STMT (ssa_name (i));
remove_phi_node (stmt, NULL_TREE, bb_for_stmt (stmt));
remove_phi_node (stmt, NULL_TREE);
}
}
......
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