[patch] O(1) PHI argument look-up - Part 6/n

Kazu Hirata kazu@cs.umass.edu
Mon Nov 22 00:13:00 GMT 2004


Hi,

Attached is a patch to part 6 of my O(1) PHI argument look-up patch.

This patch makes remove_phi_arg_num static.

Bootstrapped on i686-pc-linux-gnu on top of part 3 through 5:

http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01668.html
http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01679.html
http://gcc.gnu.org/ml/gcc-patches/2004-11/msg01697.html

OK to apply?

Kazu Hirata

2004-11-21  Kazu Hirata  <kazu@cs.umass.edu>

	* tree-phinodes.c (remove_phi_arg_num): Make it static.
	* tree-flow.h: Remove the corresponding prototype.

diff -u tree-flow.h tree-flow.h
--- tree-flow.h	21 Nov 2004 06:34:35 -0000
+++ tree-flow.h	21 Nov 2004 06:49:06 -0000
@@ -511,7 +511,6 @@
 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_arg_num (tree, int);
 extern void remove_phi_node (tree, tree, basic_block);
 extern void remove_all_phi_nodes_for (bitmap);
 extern tree phi_reverse (tree);
diff -u tree-phinodes.c tree-phinodes.c
--- tree-phinodes.c	21 Nov 2004 06:34:36 -0000
+++ tree-phinodes.c	21 Nov 2004 06:49:06 -0000
@@ -354,7 +354,7 @@
    removal by swapping the last alternative with the alternative we want to
    delete, then shrinking the vector.  */
 
-void
+static void
 remove_phi_arg_num (tree phi, int i)
 {
   int num_elem = PHI_NUM_ARGS (phi);



More information about the Gcc-patches mailing list