diff options
author | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-01-03 18:41:05 +0000 |
---|---|---|
committer | law <law@138bc75d-0d04-0410-961f-82ee72b054a4> | 2017-01-03 18:41:05 +0000 |
commit | 3b50f2026555b7c7902e74531f6cb230ac3d83c7 (patch) | |
tree | 26221c5b6b8ccad34fb21bff625cd2b808fd282d /gcc/emit-rtl.c | |
parent | 6dc2e74e90f066c46af278009699c08b8b459c27 (diff) | |
download | gcc-3b50f2026555b7c7902e74531f6cb230ac3d83c7.tar.gz |
PR rtl-optimization/65618
* emit-rtl.c (try_split): Move initialization of "before" and
"after" to just before the call to emit_insn_after_setloc.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@244029 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/emit-rtl.c')
-rw-r--r-- | gcc/emit-rtl.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gcc/emit-rtl.c b/gcc/emit-rtl.c index fdb0dec055a..bfa42d2467f 100644 --- a/gcc/emit-rtl.c +++ b/gcc/emit-rtl.c @@ -3643,8 +3643,7 @@ mark_label_nuses (rtx x) rtx_insn * try_split (rtx pat, rtx_insn *trial, int last) { - rtx_insn *before = PREV_INSN (trial); - rtx_insn *after = NEXT_INSN (trial); + rtx_insn *before, *after; rtx note; rtx_insn *seq, *tem; int probability; @@ -3818,6 +3817,9 @@ try_split (rtx pat, rtx_insn *trial, int last) } } + before = PREV_INSN (trial); + after = NEXT_INSN (trial); + tem = emit_insn_after_setloc (seq, trial, INSN_LOCATION (trial)); delete_insn (trial); |