This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[patch] cfgcleanup.c: Remove merge_seq_blocks.


Hi,

Attached is a patch to remove merge_seq_blocks as it is unused.

Bootstrapped on i686-pc-linux-gnu.  OK to apply?

Kazu Hirata

2007-05-26  Kazu Hirata  <kazu@codesourcery.com>

	* basic-block.h: Remove the prototype for merge_seq_blocks.
	* cfgcleanup.c (merge_seq_blocks): Remove.

Index: basic-block.h
===================================================================
--- basic-block.h	(revision 125090)
+++ basic-block.h	(working copy)
@@ -919,7 +919,6 @@ extern void free_aux_for_edges (void);
 extern void find_basic_blocks (rtx);
 extern bool cleanup_cfg (int);
 extern bool delete_unreachable_blocks (void);
-extern bool merge_seq_blocks (void);
 
 extern bool mark_dfs_back_edges (void);
 extern void set_edge_can_fallthru_flag (void);
Index: cfgcleanup.c
===================================================================
--- cfgcleanup.c	(revision 125090)
+++ cfgcleanup.c	(working copy)
@@ -2166,31 +2166,6 @@ delete_unreachable_blocks (void)
     tidy_fallthru_edges ();
   return changed;
 }
-
-/* Merges sequential blocks if possible.  */
-
-bool
-merge_seq_blocks (void)
-{
-  basic_block bb;
-  bool changed = false;
-
-  for (bb = ENTRY_BLOCK_PTR->next_bb; bb != EXIT_BLOCK_PTR; )
-    {
-      if (single_succ_p (bb)
-	  && can_merge_blocks_p (bb, single_succ (bb)))
-	{
-	  /* Merge the blocks and retry.  */
-	  merge_blocks (bb, single_succ (bb));
-	  changed = true;
-	  continue;
-	}
-
-      bb = bb->next_bb;
-    }
-
-  return changed;
-}
 
 /* Tidy the CFG by deleting unreachable code and whatnot.  */
 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]