diff options
author | Richard Henderson <rth@redhat.com> | 2001-08-18 19:46:30 -0700 |
---|---|---|
committer | Richard Henderson <rth@gcc.gnu.org> | 2001-08-18 19:46:30 -0700 |
commit | f83594c41cf89df9817cc9cf61f7dcd57f90340c (patch) | |
tree | 941b324f9a84f15fe2c879cffcb3a6099d0d83f4 | |
parent | eced69b5ddee64392882fe9f0c9675bef645dbfc (diff) | |
download | gcc-f83594c41cf89df9817cc9cf61f7dcd57f90340c.zip gcc-f83594c41cf89df9817cc9cf61f7dcd57f90340c.tar.gz gcc-f83594c41cf89df9817cc9cf61f7dcd57f90340c.tar.bz2 |
ia64.c (ia64_internal_sched_reorder): Emit stop bit before asm as needed.
* config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
bit before asm as needed.
From-SVN: r45018
-rw-r--r-- | gcc/ChangeLog | 5 | ||||
-rw-r--r-- | gcc/config/ia64/ia64.c | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 30b7c23..c77f0f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,10 @@ 2001-08-18 Richard Henderson <rth@redhat.com> + * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop + bit before asm as needed. + +2001-08-18 Richard Henderson <rth@redhat.com> + * timevar.def (TV_MACH_DEP): New. * toplev.c (rest_of_compilation): Use it. * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2. diff --git a/gcc/config/ia64/ia64.c b/gcc/config/ia64/ia64.c index 52fc6e5..a8070de 100644 --- a/gcc/config/ia64/ia64.c +++ b/gcc/config/ia64/ia64.c @@ -6114,6 +6114,12 @@ ia64_internal_sched_reorder (dump, sched_verbose, ready, pn_ready, else if (n_ready > 0) { /* Only asm insns left. */ + if (ia64_final_schedule && group_barrier_needed_p (ready[n_ready - 1])) + { + schedule_stop (sched_verbose ? dump : NULL); + sched_data.last_was_stop = 1; + maybe_rotate (sched_verbose ? dump : NULL); + } cycle_end_fill_slots (sched_verbose ? dump : NULL); return 1; } |