OSDN Git Service

* tree-phinodes.c (remove_phi_node): Drop the last argument.
authorkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 5 Mar 2005 15:29:25 +0000 (15:29 +0000)
committerkazu <kazu@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 5 Mar 2005 15:29:25 +0000 (15:29 +0000)
* 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

gcc/ChangeLog
gcc/lambda-code.c
gcc/tree-cfg.c
gcc/tree-flow.h
gcc/tree-outof-ssa.c
gcc/tree-phinodes.c
gcc/tree-ssa-dce.c
gcc/tree-ssa-loop-ivopts.c
gcc/tree-ssa-pre.c
gcc/tree-ssa.c

index 7a8a848..ab6f617 100644 (file)
@@ -8,6 +8,19 @@
        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.
index 909c28d..a19ab92 100644 (file)
@@ -2327,7 +2327,7 @@ perfect_nestify (struct loops *loops,
   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.  */
index 6ba0a02..b87ce54 100644 (file)
@@ -1997,7 +1997,7 @@ remove_phi_nodes_and_edges_for_unreachable_block (basic_block bb)
   while (phi)
     {
       tree next = PHI_CHAIN (phi);
-      remove_phi_node (phi, NULL_TREE, bb);
+      remove_phi_node (phi, NULL_TREE);
       phi = next;
     }
 
index 82402c2..b0c0f86 100644 (file)
@@ -522,7 +522,7 @@ extern void reserve_phi_args_for_new_edge (basic_block);
 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 *);
index 2eaa271..9e40698 100644 (file)
@@ -1030,7 +1030,7 @@ eliminate_virtual_phis (void)
                    }
                }
 #endif
-             remove_phi_node (phi, NULL_TREE, bb);
+             remove_phi_node (phi, NULL_TREE);
            }
        }
     }
@@ -2371,7 +2371,7 @@ remove_ssa_form (FILE *dump, var_map map, int flags)
       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);
        }
     }
 
index 8baf17a..dcf4ba0 100644 (file)
@@ -402,7 +402,7 @@ remove_phi_args (edge e)
    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;
 
@@ -412,7 +412,7 @@ remove_phi_node (tree phi, tree prev, basic_block bb)
     }
   else
     {
-      for (loc = &(bb_ann (bb)->phi_nodes);
+      for (loc = &(bb_ann (bb_for_stmt (phi))->phi_nodes);
           *loc != phi;
           loc = &PHI_CHAIN (*loc))
        ;
index 69408e8..6920ee1 100644 (file)
@@ -684,7 +684,7 @@ remove_dead_phis (basic_block bb)
              fprintf (dump_file, "\n");
            }
 
-         remove_phi_node (phi, prev, bb);
+         remove_phi_node (phi, prev);
          stats.removed_phis++;
          phi = next;
        }
index b1636a7..4431461 100644 (file)
@@ -4652,7 +4652,7 @@ remove_statement (tree stmt, bool including_defined_name)
          /* 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
     {
index 66e2b22..f4488a7 100644 (file)
@@ -2106,7 +2106,7 @@ remove_dead_inserted_code (void)
            }
          if (TREE_CODE (t) == PHI_NODE)
            {
-             remove_phi_node (t, NULL, bb_for_stmt (t));
+             remove_phi_node (t, NULL);
            }
          else
            {
index 99b9627..91e28d6 100644 (file)
@@ -1288,7 +1288,7 @@ kill_redundant_phi_nodes (void)
       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);
        }
     }