diff options
author | Jeffrey A Law <law@cygnus.com> | 1998-08-18 21:58:15 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-08-18 15:58:15 -0600 |
commit | 062ae7edd08417a91165b45a368dd85a911bbb0b (patch) | |
tree | b05e3dab8662c532d76f70a9f461f7cf096ce104 /gcc/haifa-sched.c | |
parent | 5ff20a9bc39885484500a560026083b5582e028c (diff) | |
download | gcc-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.c | 4 |
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; } |