+2018-04-11 Alexander Monakov <amonakov@ispras.ru>
+
+ PR target/84301
+ * sched-rgn.c (add_branch_dependences): Move sel_sched_p check here...
+ (compute_block_dependences): ... from here.
+
2018-04-11 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/85331
while (insn != head && DEBUG_INSN_P (insn));
}
+ /* Selective scheduling handles control dependencies by itself, and
+ CANT_MOVE flags ensure that other insns will be kept in place. */
+ if (sel_sched_p ())
+ return;
+
/* Make sure these insns are scheduled last in their block. */
insn = last;
if (insn != 0)
sched_analyze (&tmp_deps, head, tail);
- /* Selective scheduling handles control dependencies by itself. */
- if (!sel_sched_p ())
- add_branch_dependences (head, tail);
+ add_branch_dependences (head, tail);
if (current_nr_blocks > 1)
propagate_deps (bb, &tmp_deps);
+2018-04-11 Alexander Monakov <amonakov@ispras.ru>
+
+ PR target/84301
+ * gcc.target/i386/pr84301.c: New test.
+
2018-04-11 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/85331