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]

Re: genautomata progress bars tweak


I'm currently testing the appended patch on AMD64/Linux.

The output is now:
./genattrtab /cvs/gcc/gcc/config/i386/i386.md > tmp-attrtab.c
Check description...done
Reservation transformation...done
Check unit distributions to automata...done
Prepare automaton `pentium' creation...done
Create automaton `pentium'... done
Make DFA `pentium'... done
Minimize DFA `pentium'...done
Prepare automaton `pentium_fpu' creation...done
Create automaton `pentium_fpu'... done
Make DFA `pentium_fpu'... done
Minimize DFA `pentium_fpu'...done
Prepare automaton `athlon' creation...done
Create automaton `athlon'... done
Make DFA `athlon'... done
Minimize DFA `athlon'...done
Prepare automaton `athlon_load' creation...done
Create automaton `athlon_load'... done
Make DFA `athlon_load'... done
Minimize DFA `athlon_load'...done
Prepare automaton `athlon_mult' creation...done
Create automaton `athlon_mult'... done
Make DFA `athlon_mult'... done
Minimize DFA `athlon_mult'...done
Prepare automaton `athlon_fp' creation...done
Create automaton `athlon_fp'... done
Make DFA `athlon_fp'... done
Minimize DFA `athlon_fp'...done
Generation of attributes...done
All other genattrtab stuff...done
Forming and outputting automata tables...done
Output functions to work with automata...done

Automaton `pentium'
       48 NDFA states,            138 NDFA arcs
       48 DFA states,             138 DFA arcs
       20 minimal DFA states,      82 minimal DFA arcs
      158 all insns         17 insn equivalence classes
   88 transition comb vector els,   340 trans table els: use comb vect
   88 state alts comb vector els,   340 state alts table els: use comb vect
  340 min delay table els, compression factor 2

Automaton `pentium_fpu'
       80 NDFA states,            172 NDFA arcs
       80 DFA states,             172 DFA arcs
       75 minimal DFA states,     162 minimal DFA arcs
      158 all insns          8 insn equivalence classes
  164 transition comb vector els,   600 trans table els: use comb vect
  164 state alts comb vector els,   600 state alts table els: use comb vect
  600 min delay table els, compression factor 1

Automaton `athlon'
      518 NDFA states,           1668 NDFA arcs
      518 DFA states,            1668 DFA arcs
       76 minimal DFA states,     328 minimal DFA arcs
      158 all insns         10 insn equivalence classes
  359 transition comb vector els,   760 trans table els: use simple vect
  359 state alts comb vector els,   760 state alts table els: use simple vect
  760 min delay table els, compression factor 2

Automaton `athlon_load'
      162 NDFA states,            855 NDFA arcs
      162 DFA states,             855 DFA arcs
      162 minimal DFA states,     855 minimal DFA arcs
      158 all insns         10 insn equivalence classes
 1047 transition comb vector els,  1620 trans table els: use simple vect
 1047 state alts comb vector els,  1620 state alts table els: use simple vect
 1620 min delay table els, compression factor 2

Automaton `athlon_mult'
       16 NDFA states,             48 NDFA arcs
       16 DFA states,              48 DFA arcs
       16 minimal DFA states,      48 minimal DFA arcs
      158 all insns          4 insn equivalence classes
   50 transition comb vector els,    64 trans table els: use simple vect
   50 state alts comb vector els,    64 state alts table els: use simple vect
   64 min delay table els, compression factor 2

Automaton `athlon_fp'
    15522 NDFA states,          99908 NDFA arcs
    15522 DFA states,           99908 DFA arcs
      463 minimal DFA states,    3038 minimal DFA arcs
      158 all insns         21 insn equivalence classes
 3057 transition comb vector els,  9723 trans table els: use comb vect
 3057 state alts comb vector els,  9723 state alts table els: use comb vect
 9723 min delay table els, compression factor 1

17012 all allocated states,     101385 all allocated arcs
20258 all allocated alternative states
 4765 all transition comb vector els, 13107 all trans table els
 4765 all state alts comb vector els, 13107 all state alts table els
13107 all min delay table els
    0 locked states num

  transformation: 0.019000, building DFA: 11.481000
  DFA minimization: 0.524000, making insn equivalence: 0.002000
 all automaton generation: 12.190000, output: 0.131000
/bin/sh /cvs/gcc/gcc/move-if-change tmp-attrtab.c insn-attrtab.c
insn-attrtab.c is unchanged

So, it seems I didn't change anything...

Ok to commit if bootstrapping/regtesting passes?

Andreas

2004-01-12  Andreas Jaeger  <aj@suse.de>

	* genautomata.c (build_automaton): Remove process bars.
	(make_automaton): Likewise.
	(NDFA_to_DFA): Likewise.

============================================================
Index: gcc/genautomata.c
--- gcc/genautomata.c	11 Jan 2004 00:52:18 -0000	1.53
+++ gcc/genautomata.c	12 Jan 2004 17:11:01 -0000
@@ -1,5 +1,5 @@
 /* Pipeline hazard description translator.
-   Copyright (C) 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
+   Copyright (C) 2000, 2001, 2002, 2003, 2004 Free Software Foundation, Inc.
 
    Written by Vladimir Makarov <vmakarov@redhat.com>
 
@@ -5692,7 +5692,6 @@ make_automaton (automaton_t automaton)
   ainsn_t advance_cycle_ainsn;
   arc_t added_arc;
   vla_ptr_t state_stack;
-  int states_n;
   reserv_sets_t reservs_matter = form_reservs_matter (automaton);
 
   VLA_PTR_CREATE (state_stack, 150, "state stack");
@@ -5701,7 +5700,6 @@ make_automaton (automaton_t automaton)
   automaton->start_state = start_state;
   start_state->it_was_placed_in_stack_for_NDFA_forming = 1;
   VLA_PTR_ADD (state_stack, start_state);
-  states_n = 1;
   while (VLA_PTR_LENGTH (state_stack) != 0)
     {
       state = VLA_PTR (state_stack, VLA_PTR_LENGTH (state_stack) - 1);
@@ -5731,9 +5729,6 @@ make_automaton (automaton_t automaton)
                             state2->it_was_placed_in_stack_for_NDFA_forming
 			      = 1;
                             VLA_PTR_ADD (state_stack, state2);
-			    states_n++;
-			    if (states_n % 100 == 0)
-			      fprintf (stderr, ".");
                           }
 			added_arc = add_arc (state, state2, ainsn, 1);
 			if (!ndfa_flag)
@@ -5762,9 +5757,6 @@ make_automaton (automaton_t automaton)
         {
           state2->it_was_placed_in_stack_for_NDFA_forming = 1;
           VLA_PTR_ADD (state_stack, state2);
-	  states_n++;
-	  if (states_n % 100 == 0)
-	    fprintf (stderr, ".");
         }
       if (advance_cycle_ainsn == NULL)
 	abort ();
@@ -5912,14 +5904,12 @@ NDFA_to_DFA (automaton_t automaton)
   decl_t decl;
   vla_ptr_t state_stack;
   int i;
-  int states_n;
 
   VLA_PTR_CREATE (state_stack, 150, "state stack");
   /* Create the start state (empty state).  */
   start_state = automaton->start_state;
   start_state->it_was_placed_in_stack_for_DFA_forming = 1;
   VLA_PTR_ADD (state_stack, start_state);
-  states_n = 1;
   while (VLA_PTR_LENGTH (state_stack) != 0)
     {
       state = VLA_PTR (state_stack, VLA_PTR_LENGTH (state_stack) - 1);
@@ -5928,15 +5918,10 @@ NDFA_to_DFA (automaton_t automaton)
       for (i = 0; i < description->decls_num; i++)
 	{
 	  decl = description->decls [i];
-	  if (decl->mode == dm_insn_reserv
-	      && create_composed_state
-	         (state, DECL_INSN_RESERV (decl)->arcs_marked_by_insn,
-		  &state_stack))
-	    {
-	      states_n++;
-	      if (states_n % 100 == 0)
-		fprintf (stderr, ".");
-	    }
+	  if (decl->mode == dm_insn_reserv)
+	    create_composed_state
+	      (state, DECL_INSN_RESERV (decl)->arcs_marked_by_insn,
+	       &state_stack);
 	}
     }
   VLA_PTR_DELETE (state_stack);
@@ -6396,9 +6381,9 @@ build_automaton (automaton_t automaton)
 
   ticker_on (&NDFA_time);
   if (automaton->corresponding_automaton_decl == NULL)
-    fprintf (stderr, "Create anonymous automaton (1 dot is 100 new states):");
+    fprintf (stderr, "Create anonymous automaton...");
   else
-    fprintf (stderr, "Create automaton `%s' (1 dot is 100 new states):",
+    fprintf (stderr, "Create automaton `%s'...",
 	     automaton->corresponding_automaton_decl->name);
   make_automaton (automaton);
   fprintf (stderr, " done\n");
@@ -6408,9 +6393,9 @@ build_automaton (automaton_t automaton)
   automaton->NDFA_arcs_num = arcs_num;
   ticker_on (&NDFA_to_DFA_time);
   if (automaton->corresponding_automaton_decl == NULL)
-    fprintf (stderr, "Make anonymous DFA (1 dot is 100 new states):");
+    fprintf (stderr, "Make anonymous DFA...");
   else
-    fprintf (stderr, "Make DFA `%s' (1 dot is 100 new states):",
+    fprintf (stderr, "Make DFA `%s'...",
 	     automaton->corresponding_automaton_decl->name);
   NDFA_to_DFA (automaton);
   fprintf (stderr, " done\n");

-- 
 Andreas Jaeger, aj@suse.de, http://www.suse.de/~aj
  SuSE Linux AG, Maxfeldstr. 5, 90409 Nürnberg, Germany
   GPG fingerprint = 93A3 365E CE47 B889 DF7F  FED1 389A 563C C272 A126

Attachment: pgp00000.pgp
Description: PGP signature


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