aboutsummaryrefslogtreecommitdiff
path: root/gcc/sel-sched-ir.c
diff options
context:
space:
mode:
authorAndrey Belevantsev <abel@ispras.ru>2018-04-23 18:19:06 +0300
committerAndrey Belevantsev <abel@gcc.gnu.org>2018-04-23 18:19:06 +0300
commit99219dba378cab4ad63a338eb9a48f8685940dda (patch)
tree035b6d33491758fed68fc5f9b173f71a5a905eb4 /gcc/sel-sched-ir.c
parent0ef9f21d3c4de3a6af258338523d35ea6c4d492f (diff)
downloadgcc-99219dba378cab4ad63a338eb9a48f8685940dda.zip
gcc-99219dba378cab4ad63a338eb9a48f8685940dda.tar.gz
gcc-99219dba378cab4ad63a338eb9a48f8685940dda.tar.bz2
re PR rtl-optimization/85423 (ICE in code_motion_process_successors, at sel-sched.c:6403)
PR rtl-optimization/85423 * sel-sched-ir.c (has_dependence_note_mem_dep): Only discard dependencies to debug insns when the previous insn is non-debug. * gcc.dg/pr85423.c: New test. From-SVN: r259563
Diffstat (limited to 'gcc/sel-sched-ir.c')
-rw-r--r--gcc/sel-sched-ir.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/sel-sched-ir.c b/gcc/sel-sched-ir.c
index ee97052..85ff5bd 100644
--- a/gcc/sel-sched-ir.c
+++ b/gcc/sel-sched-ir.c
@@ -3308,7 +3308,7 @@ has_dependence_note_dep (insn_t pro, ds_t ds ATTRIBUTE_UNUSED)
that a bookkeeping copy should be movable as the original insn.
Detect that here and allow that movement if we allowed it before
in the first place. */
- if (DEBUG_INSN_P (real_con)
+ if (DEBUG_INSN_P (real_con) && !DEBUG_INSN_P (real_pro)
&& INSN_UID (NEXT_INSN (pro)) == INSN_UID (real_con))
return;