aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2023-08-02 13:26:06 +0200
committerRichard Biener <rguenther@suse.de>2023-08-02 13:51:04 +0200
commit0460c1221627938baa56c4b574a43ff19a6a8499 (patch)
treecd2da5e435cc3de41eb39459107d0c8ae543722c
parent68c3aa7510b2f45f44379ecd77e97c88780a84ed (diff)
downloadgcc-0460c1221627938baa56c4b574a43ff19a6a8499.zip
gcc-0460c1221627938baa56c4b574a43ff19a6a8499.tar.gz
gcc-0460c1221627938baa56c4b574a43ff19a6a8499.tar.bz2
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.
-rw-r--r--gcc/tree-phinodes.cc3
-rw-r--r--gcc/tree-phinodes.h1
2 files changed, 1 insertions, 3 deletions
diff --git a/gcc/tree-phinodes.cc b/gcc/tree-phinodes.cc
index 976f3db..63baec4 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 be114e3..99209ad 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);