The only exported PHI allocation already adds the PHI node to a block.
* tree-phinodes.h (add_phi_node_to_bb): Remove.
* tree-phinodes.cc (add_phi_node_to_bb): Make static.
/* Adds PHI to BB. */
-void
+static void
add_phi_node_to_bb (gphi *phi, basic_block bb)
{
gimple_seq seq = phi_nodes (bb);
/* Associate BB to the PHI node. */
gimple_set_bb (phi, bb);
-
}
/* Create a new PHI node for variable VAR at basic block BB. */
extern void phinodes_print_statistics (void);
extern void reserve_phi_args_for_new_edge (basic_block);
-extern void add_phi_node_to_bb (gphi *phi, basic_block bb);
extern gphi *create_phi_node (tree, basic_block);
extern void add_phi_arg (gphi *, tree, edge, location_t);
extern void remove_phi_args (edge);