Second flow dump

Michael Hayes m.hayes@elec.canterbury.ac.nz
Fri Feb 19 18:52:00 GMT 1999


I've been having problems with the second life_analysis pass and think
it's worthwhile to have a second flow dump rather than include it in
the global register allocation dump.

Michael.

Sat Feb 20 15:45:18 1999  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>

	* toplev.c (rest_of_compilation): Dump global register information
	before splitting instructions.   Create a second flow dump.

Index: toplev.c
===================================================================
RCS file: /egcs/carton/cvsfiles/egcs/gcc/toplev.c,v
retrieving revision 1.154
diff -c -3 -p -r1.154 toplev.c
*** toplev.c	1999/02/15 14:13:20	1.154
--- toplev.c	1999/02/20 02:43:34
*************** rest_of_compilation (decl)
*** 4051,4056 ****
--- 4051,4067 ----
    if (optimize > 0)
      reload_cse_regs (insns);
  
+   if (global_reg_dump)
+     {
+       TIMEVAR (dump_time, dump_global_regs (rtl_dump_file));
+       close_dump_file (print_rtl_with_bb, insns);
+       if (graph_dump_format != no_graph)
+ 	print_rtl_graph_with_bb (dump_base_name, ".greg", insns);
+     }
+ 
+   if (flow_dump)
+     open_dump_file (".flow2", decl_printable_name (decl, 2));
+ 
    /* If optimizing and we are performing instruction scheduling after
       reload, then go ahead and split insns now since we are about to
       recompute flow information anyway.
*************** rest_of_compilation (decl)
*** 4097,4109 ****
  
    thread_prologue_and_epilogue_insns (insns);
  
!   if (global_reg_dump)
      {
-       TIMEVAR (dump_time, dump_global_regs (rtl_dump_file));
        close_dump_file (print_rtl_with_bb, insns);
        if (graph_dump_format != no_graph)
! 	print_rtl_graph_with_bb (dump_base_name, ".greg", insns);
      }
    if (optimize > 0 && flag_schedule_insns_after_reload)
      {
        if (sched2_dump)
--- 4108,4120 ----
  
    thread_prologue_and_epilogue_insns (insns);
  
!   if (flow_dump)
      {
        close_dump_file (print_rtl_with_bb, insns);
        if (graph_dump_format != no_graph)
! 	print_rtl_graph_with_bb (dump_base_name, ".flow2", insns);
      }
+ 
    if (optimize > 0 && flag_schedule_insns_after_reload)
      {
        if (sched2_dump)


More information about the Gcc-patches mailing list