diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-08-18 21:58:15 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 1998-08-18 21:58:15 +0000 |
commit | dc9b8f52be9af2aee6ece6edd88e90240b0ed16e (patch) | |
tree | b05e3dab8662c532d76f70a9f461f7cf096ce104 | |
parent | e51a6d318225c00b43993bd654dca6d1c3a61e3d (diff) | |
download | gcc-dc9b8f52be9af2aee6ece6edd88e90240b0ed16e.tar.gz |
* haifa-sched.c (sched_analyze): Put all JUMP_INSNs on the last
pending memory flush list.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@21836 138bc75d-0d04-0410-961f-82ee72b054a4
-rw-r--r-- | gcc/ChangeLog | 3 | ||||
-rw-r--r-- | gcc/haifa-sched.c | 4 |
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 02b3a5fe113..d8c9d06adcd 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -5,6 +5,9 @@ Tue Aug 18 12:40:27 1998 Richard Henderson <rth@cygnus.com> Tue Aug 18 10:33:30 1998 Jeffrey A Law (law@cygnus.com) + * haifa-sched.c (sched_analyze): Put all JUMP_INSNs on the last + pending memory flush list. + * combine.c (can_combine_p): Allow combining insns with REG_RETVAL notes. (try_combine): Allow combining insns with REG_LIBCALL notes. diff --git a/gcc/haifa-sched.c b/gcc/haifa-sched.c index 23a7865468e..0eebda9e38a 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; } |