From: Richard Biener Date: Wed, 2 Aug 2023 11:26:06 +0000 (+0200) Subject: Make add_phi_node_to_bb static X-Git-Tag: basepoints/gcc-15~7209 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0460c1221627938baa56c4b574a43ff19a6a8499;p=thirdparty%2Fgcc.git Make add_phi_node_to_bb static 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. --- diff --git a/gcc/tree-phinodes.cc b/gcc/tree-phinodes.cc index 976f3dbae104..63baec4c16a1 100644 --- a/gcc/tree-phinodes.cc +++ b/gcc/tree-phinodes.cc @@ -315,7 +315,7 @@ reserve_phi_args_for_new_edge (basic_block bb) /* Adds PHI to BB. */ -void +static void add_phi_node_to_bb (gphi *phi, basic_block bb) { gimple_seq seq = phi_nodes (bb); @@ -330,7 +330,6 @@ add_phi_node_to_bb (gphi *phi, basic_block bb) /* Associate BB to the PHI node. */ gimple_set_bb (phi, bb); - } /* Create a new PHI node for variable VAR at basic block BB. */ diff --git a/gcc/tree-phinodes.h b/gcc/tree-phinodes.h index be114e317b42..99209ad3392e 100644 --- a/gcc/tree-phinodes.h +++ b/gcc/tree-phinodes.h @@ -22,7 +22,6 @@ along with GCC; see the file COPYING3. If not see 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);