haifa-sched.c (schedule_block): Don't call reorder when sorting is prohibited.
authorVladimir Makarov <vmakarov@redhat.com>
Fri, 7 Mar 2003 00:14:36 +0000 (00:14 +0000)
committerVladimir Makarov <vmakarov@gcc.gnu.org>
Fri, 7 Mar 2003 00:14:36 +0000 (00:14 +0000)
2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>

* haifa-sched.c (schedule_block): Don't call reorder when sorting
is prohibited.

From-SVN: r63915

gcc/ChangeLog
gcc/haifa-sched.c

index 33e127d1fd060f075d43b0490ab4a24086ea7fe9..4d8f1f2bf4e149c46c98996ba56c4bfe8a9c267c 100644 (file)
@@ -1,3 +1,8 @@
+2003-03-06  Vladimir Makarov  <vmakarov@redhat.com>
+
+       * haifa-sched.c (schedule_block): Don't call reorder when sorting
+       is prohibited.
+
 2003-03-06  Neil Booth  <neil@daikokuya.co.uk>
 
        * Makefile.in (c-ppoutput.o): Update.
index 8ea2481ce81693bf31e2fa64d524e9f7e3cbd485..5295735fb778b436628260dad6c6fb40a1ef3d98 100644 (file)
@@ -2251,7 +2251,7 @@ schedule_block (b, rgn_n_insns)
 
       /* Allow the target to reorder the list, typically for
         better instruction bundling.  */
-      if (targetm.sched.reorder
+      if (sort_p && targetm.sched.reorder
          && (ready.n_ready == 0
              || !SCHED_GROUP_P (ready_element (&ready, 0))))
        can_issue_more =