tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
authorKazu Hirata <kazu@cs.umass.edu>
Tue, 16 Nov 2004 00:08:04 +0000 (00:08 +0000)
committerKazu Hirata <kazu@gcc.gnu.org>
Tue, 16 Nov 2004 00:08:04 +0000 (00:08 +0000)
* tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
(tree_flow_call_edges_add): Update the call to
bsi_commit_edge_inserts.
* lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
* profile.c (branch_prob): Likewise.
* tree-mudflap.c (mf_decl_cache_locals): Likewise.
* tree-sra.c (scalarize_function): Likewise.
* tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
* tree-ssa-pre.c (fini_pre): Likewise.
* tree-flow.h: Update the prototype for
bsi_commit_edge_inserts.

From-SVN: r90704

gcc/ChangeLog
gcc/lambda-code.c
gcc/profile.c
gcc/tree-cfg.c
gcc/tree-flow.h
gcc/tree-mudflap.c
gcc/tree-sra.c
gcc/tree-ssa-loop-im.c
gcc/tree-ssa-pre.c

index 2f20dbf51e18883819214f5187087b3aa9104e49..5c508075ddf1a4277e1d6c575210a165f226fbcc 100644 (file)
@@ -8,6 +8,18 @@
        TREE_OPERAND with COND_EXPR_COND, COND_EXPR_THEN, or
        COND_EXPR_ELSE.
 
+       * tree-cfg.c (bsi_commit_edge_inserts): Remove an argument.
+       (tree_flow_call_edges_add): Update the call to
+       bsi_commit_edge_inserts.
+       * lambda-code.c (lambda_loopnest_to_gcc_loopnest): Likewise.
+       * profile.c (branch_prob): Likewise.
+       * tree-mudflap.c (mf_decl_cache_locals): Likewise.
+       * tree-sra.c (scalarize_function): Likewise.
+       * tree-ssa-loop-im.c (loop_commit_inserts): Likewise.
+       * tree-ssa-pre.c (fini_pre): Likewise.
+       * tree-flow.h: Update the prototype for
+       bsi_commit_edge_inserts.
+
 2004-11-15  Eric Christopher  <echristo@redhat.com>
 
        * sched-deps.c (set_sched_group_p): Delete.
index 08f963e534b29e71de9020d7eca5c0dadbd53636..2e1d85107b5e69d01a826e28040b44a093dbd4bb 100644 (file)
@@ -1900,7 +1900,7 @@ lambda_loopnest_to_gcc_loopnest (struct loop *old_loopnest,
                                             new_ivs,
                                             invariants, MAX_EXPR, &stmts);
       bsi_insert_on_edge (loop_preheader_edge (temp), stmts);
-      bsi_commit_edge_inserts (NULL);
+      bsi_commit_edge_inserts ();
       /* Build the new upper bound and insert its statements in the
          basic block of the exit condition */
       newupperbound = lle_to_gcc_expression (LL_UPPER_BOUND (newloop),
index 5a0cc60cfdc02ea04580f7254973b2c4d2361629..93d79d03b505e2231ad446f6f88dd4230a5a6ed3 100644 (file)
@@ -1109,7 +1109,7 @@ branch_prob (void)
 
       /* Commit changes done by instrumentation.  */
       if (ir_type ())
-       bsi_commit_edge_inserts ((int *)NULL);
+       bsi_commit_edge_inserts ();
       else
        {
           commit_edge_insertions_watch_calls ();
index 1ec6fc2c57d37ae8d62819babacca87385b19d20..f9be0b3fa696f25a79280cd5258667ca224c46c6 100644 (file)
@@ -3005,29 +3005,20 @@ tree_find_edge_insert_loc (edge e, block_stmt_iterator *bsi,
 
 
 /* This routine will commit all pending edge insertions, creating any new
-   basic blocks which are necessary.
-
-   If specified, NEW_BLOCKS returns a count of the number of new basic
-   blocks which were created.  */
+   basic blocks which are necessary.  */
 
 void
-bsi_commit_edge_inserts (int *new_blocks)
+bsi_commit_edge_inserts (void)
 {
   basic_block bb;
   edge e;
-  int blocks;
   edge_iterator ei;
 
-  blocks = n_basic_blocks;
-
   bsi_commit_one_edge_insert (EDGE_SUCC (ENTRY_BLOCK_PTR, 0), NULL);
 
   FOR_EACH_BB (bb)
     FOR_EACH_EDGE (e, ei, bb->succs)
       bsi_commit_one_edge_insert (e, NULL);
-
-  if (new_blocks)
-    *new_blocks = n_basic_blocks - blocks;
 }
 
 
@@ -5168,7 +5159,7 @@ tree_flow_call_edges_add (sbitmap blocks)
            if (e->dest == EXIT_BLOCK_PTR)
              {
                bsi_insert_on_edge (e, build_empty_stmt ());
-               bsi_commit_edge_inserts ((int *)NULL);
+               bsi_commit_edge_inserts ();
                break;
              }
        }
index 08a73e4143e3824d7699741e09f2e46a5e32dec5..01c74bad42cf4720a3f9b7cc9a83596b084f377e 100644 (file)
@@ -480,7 +480,7 @@ extern void tree_optimize_tail_calls (bool, enum tree_dump_index);
 extern void bsi_insert_on_edge (edge, tree);
 extern basic_block bsi_insert_on_edge_immediate (edge, tree);
 extern void bsi_commit_one_edge_insert (edge, basic_block *);
-extern void bsi_commit_edge_inserts (int *);
+extern void bsi_commit_edge_inserts (void);
 extern void notice_special_calls (tree);
 extern void clear_special_calls (void);
 extern void verify_stmts (void);
index f59732f146b2fc7b2d8273dcdb45aef2a45b2bb1..4cc217ee3ba8120b9151726857f7797475967dfb 100644 (file)
@@ -476,7 +476,7 @@ mf_decl_cache_locals (void)
        ! tsi_end_p (tsi);
        tsi_next (&tsi))
     insert_edge_copies (tsi_stmt (tsi), ENTRY_BLOCK_PTR);
-  bsi_commit_edge_inserts (NULL);
+  bsi_commit_edge_inserts ();
 }
 
 
index 91314a5c83d2a0bb86f3d8c6357f4836f50aa8ea..0137373bd9d574bef872e003742e1118120c5337 100644 (file)
@@ -1992,7 +1992,7 @@ scalarize_function (void)
 
   sra_walk_function (&fns);
   scalarize_parms ();
-  bsi_commit_edge_inserts (NULL);
+  bsi_commit_edge_inserts ();
 }
 
 \f
index 3c755537b5091b2592f5df35bff5a19ba5828b9a..a53fd53a20932d88fc794ed0adc5b37932bfeb29 100644 (file)
@@ -596,7 +596,7 @@ loop_commit_inserts (void)
   basic_block bb;
 
   old_last_basic_block = last_basic_block;
-  bsi_commit_edge_inserts (NULL);
+  bsi_commit_edge_inserts ();
   for (i = old_last_basic_block; i < (unsigned) last_basic_block; i++)
     {
       bb = BASIC_BLOCK (i);
index 4eab9cf9462bde7add001111ed1ffcc3dc462e2f..113ec8334cd9e48620817a18bb318848f57a8509 100644 (file)
@@ -1964,7 +1964,7 @@ fini_pre (void)
   basic_block bb;
   unsigned int i;
 
-  bsi_commit_edge_inserts (NULL);
+  bsi_commit_edge_inserts ();
 
   obstack_free (&grand_bitmap_obstack, NULL);
   free_alloc_pool (value_set_pool);