aboutsummaryrefslogtreecommitdiff
path: root/gcc/haifa-sched.c
diff options
context:
space:
mode:
authorJeffrey A Law <law@cygnus.com>1998-08-18 21:58:15 +0000
committerJeff Law <law@gcc.gnu.org>1998-08-18 15:58:15 -0600
commit062ae7edd08417a91165b45a368dd85a911bbb0b (patch)
treeb05e3dab8662c532d76f70a9f461f7cf096ce104 /gcc/haifa-sched.c
parent5ff20a9bc39885484500a560026083b5582e028c (diff)
downloadgcc-062ae7edd08417a91165b45a368dd85a911bbb0b.zip
gcc-062ae7edd08417a91165b45a368dd85a911bbb0b.tar.gz
gcc-062ae7edd08417a91165b45a368dd85a911bbb0b.tar.bz2
haifa-sched.c (sched_analyze): Put all JUMP_INSNs on the last pending memory flush list.
* haifa-sched.c (sched_analyze): Put all JUMP_INSNs on the last pending memory flush list. From-SVN: r21836
Diffstat (limited to 'gcc/haifa-sched.c')
-rw-r--r--gcc/haifa-sched.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c
index 23a7865..0eebda9 100644
--- a/gcc/haifa-sched.c
+++ b/gcc/haifa-sched.c
@@ -3813,6 +3813,10 @@ sched_analyze (head, tail)
{
if (GET_CODE (insn) == INSN || GET_CODE (insn) == JUMP_INSN)
{
+ /* Make each JUMP_INSN a scheduling barrier for memory references. */
+ if (GET_CODE (insn) == JUMP_INSN)
+ last_pending_memory_flush
+ = alloc_INSN_LIST (insn, last_pending_memory_flush);
sched_analyze_insn (PATTERN (insn), insn, loop_notes);
loop_notes = 0;
}