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] ip2k.c, sh.c: Adjust calls to find_basic_blocks.


Hi,

Attached is a patch to adjust calls to find_basic_blocks.

I removed the last two arguments of find_basic_blocks, but apparently,
I didn't look into backends.

Tested by building cc1.  Committed as obvious.

Kazu Hirata

2005-02-16  Kazu Hirata  <kazu@cs.umass.edu>

	PR target/20007
	* config/ip2k/ip2k.c (ip2k_reorg): Adjust calls to
	find_basic_blocks.
	* config/sh/sh.c (sh_output_mi_thunk): Likewise.

Index: config/ip2k/ip2k.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/ip2k/ip2k.c,v
retrieving revision 1.42
diff -u -d -p -r1.42 ip2k.c
--- config/ip2k/ip2k.c	23 Jan 2005 15:05:47 -0000	1.42
+++ config/ip2k/ip2k.c	16 Feb 2005 14:59:17 -0000
@@ -5318,7 +5318,7 @@ ip2k_reorg (void)
   /* There's a good chance that since we last did CSE that we've rearranged
      things in such a way that another go will win.  Do so now!  */
   reload_cse_regs (first_insn);
-  find_basic_blocks (first_insn, max_reg_num (), 0);
+  find_basic_blocks (first_insn);
   life_analysis (0, PROP_REG_INFO | PROP_DEATH_NOTES);
   
   /* Look for where absurd things are happening with DP.  */
@@ -5330,7 +5330,7 @@ ip2k_reorg (void)
   split_all_insns (0);
 
   reload_cse_regs (first_insn);
-  find_basic_blocks (first_insn, max_reg_num (), 0);
+  find_basic_blocks (first_insn);
   life_analysis (0, PROP_REG_INFO | PROP_DEATH_NOTES);
   if (flag_peephole2)
     peephole2_optimize (NULL);
@@ -5357,7 +5357,7 @@ ip2k_reorg (void)
   mdr_try_move_dp_reload (first_insn);
   mdr_try_move_pushes (first_insn);
 
-  find_basic_blocks (first_insn, max_reg_num (), 0);
+  find_basic_blocks (first_insn);
   life_analysis (0, PROP_FINAL);
 
   mdr_try_propagate_move (first_insn);
@@ -5371,14 +5371,14 @@ ip2k_reorg (void)
   mdr_try_propagate_move (first_insn);
 
   reload_cse_regs (first_insn);
-  find_basic_blocks (first_insn, max_reg_num (), 0);
+  find_basic_blocks (first_insn);
   life_analysis (0, PROP_FINAL);
   if (flag_peephole2)
     peephole2_optimize (NULL);
 
   mdr_try_propagate_move (first_insn);
 
-  find_basic_blocks (first_insn, max_reg_num (), 0);
+  find_basic_blocks (first_insn);
   life_analysis (0, PROP_FINAL);
 
   ip2k_reorg_split_simode = 1;
@@ -5389,14 +5389,14 @@ ip2k_reorg (void)
   mdr_try_propagate_move (first_insn);
 
   reload_cse_regs (first_insn);
-  find_basic_blocks (first_insn, max_reg_num (), 0);
+  find_basic_blocks (first_insn);
   life_analysis (0, PROP_FINAL);
   if (flag_peephole2)
     peephole2_optimize (NULL);
 
   mdr_try_propagate_move (first_insn);
 
-  find_basic_blocks (first_insn, max_reg_num (), 0);
+  find_basic_blocks (first_insn);
   life_analysis (0, PROP_FINAL);
 
   ip2k_reorg_split_himode = 1;
@@ -5414,21 +5414,21 @@ ip2k_reorg (void)
 
   /* Call to  jump_optimize (...) was here, but now I removed it.  */
   
-  find_basic_blocks (first_insn, max_reg_num (), 0);
+  find_basic_blocks (first_insn);
   life_analysis (0, PROP_FINAL);
   if (flag_peephole2)
     peephole2_optimize (NULL);
 
   mdr_try_propagate_move (first_insn);
 
-  find_basic_blocks (first_insn, max_reg_num (), 0);
+  find_basic_blocks (first_insn);
   life_analysis (0, PROP_FINAL);
   mdr_try_remove_redundant_insns (first_insn);
 
   mdr_try_propagate_clr (first_insn);
   mdr_try_propagate_move (first_insn);
 
-  find_basic_blocks (first_insn, max_reg_num (), 0);
+  find_basic_blocks (first_insn);
   life_analysis (0, PROP_FINAL);
 
   ip2k_reorg_split_qimode = 1;
@@ -5437,7 +5437,7 @@ ip2k_reorg (void)
   mdr_try_wreg_elim (first_insn);
   mdr_try_propagate_move (first_insn);
 
-  find_basic_blocks (first_insn, max_reg_num (), 0);
+  find_basic_blocks (first_insn);
   life_analysis (0, PROP_FINAL);
 #endif
 }
Index: config/sh/sh.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/config/sh/sh.c,v
retrieving revision 1.317
diff -u -d -p -r1.317 sh.c
--- config/sh/sh.c	27 Jan 2005 18:22:35 -0000	1.317
+++ config/sh/sh.c	16 Feb 2005 14:59:17 -0000
@@ -9855,7 +9855,7 @@ sh_output_mi_thunk (FILE *file, tree thu
       if (! basic_block_info)
 	init_flow ();
       rtl_register_cfg_hooks ();
-      find_basic_blocks (insns, max_reg_num (), dump_file);
+      find_basic_blocks (insns);
       life_analysis (dump_file, PROP_FINAL);
 
       split_all_insns (1);


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