]> gcc.gnu.org Git - gcc.git/commitdiff
ia64.c (nop_cycles_until): Do init_insn_group_barriers if we emitted a stop bit.
authorRichard Henderson <rth@redhat.com>
Tue, 26 Feb 2002 22:41:48 +0000 (14:41 -0800)
committerRichard Henderson <rth@gcc.gnu.org>
Tue, 26 Feb 2002 22:41:48 +0000 (14:41 -0800)
        * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
        if we emitted a stop bit.

From-SVN: r50065

gcc/ChangeLog
gcc/config/ia64/ia64.c

index 30d2700aefe0199406fdda03bdc9645d32bc7302..6bf8b86251203d430f45a0f9c9fcaabafb11b155 100644 (file)
@@ -1,3 +1,8 @@
+2002-02-26  Richard Henderson  <rth@redhat.com>
+
+       * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
+       if we emitted a stop bit.
+
 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
 
        * configure.in (libgcc_visibility): Substitute.
index 2bdc16ca128a9a3fc5daba13e28730294b0c88b2..8e975e0cb02e8d5671b79dda6fd66c1870059f16 100644 (file)
@@ -6090,12 +6090,14 @@ nop_cycles_until (clock_var, dump)
 {
   int prev_clock = prev_cycle;
   int cycles_left = clock_var - prev_clock;
+  bool did_stop = false;
 
   /* Finish the previous cycle; pad it out with NOPs.  */
   if (sched_data.cur == 3)
     {
       rtx t = gen_insn_group_barrier (GEN_INT (3));
       last_issued = emit_insn_after (t, last_issued);
+      did_stop = true;
       maybe_rotate (dump);
     }
   else if (sched_data.cur > 0)
@@ -6148,6 +6150,7 @@ nop_cycles_until (clock_var, dump)
        {
          rtx t = gen_insn_group_barrier (GEN_INT (3));
          last_issued = emit_insn_after (t, last_issued);
+         did_stop = true;
        }
       maybe_rotate (dump);
     }
@@ -6171,8 +6174,12 @@ nop_cycles_until (clock_var, dump)
       last_issued = emit_insn_after (t, last_issued);
       t = gen_insn_group_barrier (GEN_INT (3));
       last_issued = emit_insn_after (t, last_issued);
+      did_stop = true;
       cycles_left--;
     }
+
+  if (did_stop)
+    init_insn_group_barriers ();
 }
 
 /* We are about to being issuing insns for this clock cycle.
This page took 0.100213 seconds and 5 git commands to generate.