* 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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@95932
138bc75d-0d04-0410-961f-
82ee72b054a4
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.
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. */
while (phi)
{
tree next = PHI_CHAIN (phi);
- remove_phi_node (phi, NULL_TREE, bb);
+ remove_phi_node (phi, NULL_TREE);
phi = next;
}
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 *);
}
}
#endif
- remove_phi_node (phi, NULL_TREE, bb);
+ remove_phi_node (phi, NULL_TREE);
}
}
}
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);
}
}
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;
}
else
{
- for (loc = &(bb_ann (bb)->phi_nodes);
+ for (loc = &(bb_ann (bb_for_stmt (phi))->phi_nodes);
*loc != phi;
loc = &PHI_CHAIN (*loc))
;
fprintf (dump_file, "\n");
}
- remove_phi_node (phi, prev, bb);
+ remove_phi_node (phi, prev);
stats.removed_phis++;
phi = next;
}
/* 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
{
}
if (TREE_CODE (t) == PHI_NODE)
{
- remove_phi_node (t, NULL, bb_for_stmt (t));
+ remove_phi_node (t, NULL);
}
else
{
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);
}
}