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
+2018-04-23 Andrey Belevantsev <abel@ispras.ru>
+
+ 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.
+
2018-04-23 Claudiu Zissulescu <claziss@synopsys.com>
* config/arc/arc.md ("vunspec"): Delete it, unify all the unspec
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;
+2018-04-23 Andrey Belevantsev <abel@ispras.ru>
+
+ PR rtl-optimization/85423
+ * gcc.dg/pr85423.c: New test.
+
2018-04-20 Martin Sebor <msebor@redhat.com>
PR c/85365
--- /dev/null
+/* { dg-do compile { target powerpc*-*-* ia64-*-* i?86-*-* x86_64-*-* } } */
+/* { dg-options "-O2 -fselective-scheduling2 -fvar-tracking-assignments -fno-guess-branch-probability -fno-peephole2 -fno-ssa-phiopt -fno-tree-pre --param max-jump-thread-duplication-stmts=8 -w" } */
+/* { dg-additional-options "-march=nano" { target i?86-*-* x86_64-*-* } } */
+
+int vn, xm;
+
+void
+i1 (int);
+
+void
+mb (int *ap, int ev)
+{
+ while (vn < 1)
+ {
+ i1 (vn);
+
+ ev += *ap && ++vn;
+
+ while (xm < 1)
+ ++xm;
+
+ if (*ap == 0)
+ *ap = ev;
+
+ ++vn;
+ }
+}