diff options
author | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-22 20:55:01 +0000 |
---|---|---|
committer | vries <vries@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-11-22 20:55:01 +0000 |
commit | 420a9b6637cf21fe2a4ebcaa6154513e3f6c4644 (patch) | |
tree | 737e03bbd0a1a9e5ecb2b417e9a01a85cc4cf2e1 /gcc/sched-deps.c | |
parent | 44a7454ceee7e6f7f911063b465eeb4338c18625 (diff) | |
download | gcc-420a9b6637cf21fe2a4ebcaa6154513e3f6c4644.tar.gz |
2011-11-22 Tom de Vries <tom@codesourcery.com>
PR rtl-optimization/50764
* sched-deps.c (sched_analyze_insn): Make sure frame-related insns are
not moved past preceding jump.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@181639 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/sched-deps.c')
-rw-r--r-- | gcc/sched-deps.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/sched-deps.c b/gcc/sched-deps.c index a778721d20b..043204a34bc 100644 --- a/gcc/sched-deps.c +++ b/gcc/sched-deps.c @@ -2812,8 +2812,14 @@ sched_analyze_insn (struct deps_desc *deps, rtx x, rtx insn) during prologue generation and avoid marking the frame pointer setup as frame-related at all. */ if (RTX_FRAME_RELATED_P (insn)) - deps->sched_before_next_jump - = alloc_INSN_LIST (insn, deps->sched_before_next_jump); + { + /* Make sure prologue insn is scheduled before next jump. */ + deps->sched_before_next_jump + = alloc_INSN_LIST (insn, deps->sched_before_next_jump); + + /* Make sure epilogue insn is scheduled after preceding jumps. */ + add_dependence_list (insn, deps->pending_jump_insns, 1, REG_DEP_ANTI); + } if (code == COND_EXEC) { |