i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
authorJeff Law <law@redhat.com>
Tue, 21 May 2002 23:51:59 +0000 (17:51 -0600)
committerJeff Law <law@gcc.gnu.org>
Tue, 21 May 2002 23:51:59 +0000 (17:51 -0600)
        * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
        (ix86_sched_reorder): Make sure to initialize scheduling
        data even when there's only one insn in the ready queue.

From-SVN: r53713

gcc/ChangeLog
gcc/config/i386/i386.c

index b6b7c787f2fea07255de7c6775d14822c2150966..4f75a0a5c81eb35a5bd10be6982592b952350c3f 100644 (file)
@@ -1,3 +1,9 @@
+2002-05-21  Jeffrey A Law  <law@redhat.com>
+
+       * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
+       (ix86_sched_reorder): Make sure to initialize scheduling
+       data even when there's only one insn in the ready queue.
+
 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
 
        * genautomata.c (reserv_sets_hash_value): Fix a typo.
index b76d524fbb6edce1092ec00ebf6826c9dee8c7ca..1b8c9b8e124249c166c7501b16b6a0f824a742c7 100644 (file)
@@ -10404,7 +10404,7 @@ ix86_sched_reorder_ppro (ready, e_ready)
   for (i = 1; i < 3; ++i)
     if (decode[i] == NULL)
       {
-       if (ready >= e_ready)
+       if (ready > e_ready)
          goto ppro_done;
 
        insnp = e_ready;
@@ -10448,8 +10448,14 @@ ix86_sched_reorder (dump, sched_verbose, ready, n_readyp, clock_var)
   int n_ready = *n_readyp;
   rtx *e_ready = ready + n_ready - 1;
 
+  /* Make sure to go ahead and initialize key items in 
+     ix86_sched_data if we are not going to bother trying to
+     reorder the ready queue.  */
   if (n_ready < 2)
-    goto out;
+    {
+      ix86_sched_data.ppro.issued_this_cycle = 1;
+      goto out;
+    }
 
   switch (ix86_cpu)
     {