aboutsummaryrefslogtreecommitdiff
path: root/gcc/config/ia64
diff options
context:
space:
mode:
authorRichard Henderson <rth@redhat.com>2001-08-18 19:46:30 -0700
committerRichard Henderson <rth@gcc.gnu.org>2001-08-18 19:46:30 -0700
commitf83594c41cf89df9817cc9cf61f7dcd57f90340c (patch)
tree941b324f9a84f15fe2c879cffcb3a6099d0d83f4 /gcc/config/ia64
parenteced69b5ddee64392882fe9f0c9675bef645dbfc (diff)
downloadgcc-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
Diffstat (limited to 'gcc/config/ia64')
-rw-r--r--gcc/config/ia64/ia64.c6
1 files changed, 6 insertions, 0 deletions
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;
}