Commit c5370327 by Jakub Jelinek Committed by Jakub Jelinek

re PR target/83986 (ICE in maybe_record_trace_start, at dwarf2cfi.c:2348)

	PR rtl-optimization/83986
	* sched-deps.c (sched_analyze_insn): For frame related insns, add anti
	dependence against last_pending_memory_flush in addition to
	pending_jump_insns.

	* gcc.dg/pr83986.c: New test.

From-SVN: r257203
parent b1c7b29a
2018-01-30 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/83986
* sched-deps.c (sched_analyze_insn): For frame related insns, add anti
dependence against last_pending_memory_flush in addition to
pending_jump_insns.
2018-01-30 Alexandre Oliva <aoliva@redhat.com>
PR tree-optimization/81611
......
......@@ -2922,6 +2922,8 @@ sched_analyze_insn (struct deps_desc *deps, rtx x, rtx_insn *insn)
= alloc_INSN_LIST (insn, deps->sched_before_next_jump);
/* Make sure epilogue insn is scheduled after preceding jumps. */
add_dependence_list (insn, deps->last_pending_memory_flush, 1,
REG_DEP_ANTI, true);
add_dependence_list (insn, deps->pending_jump_insns, 1, REG_DEP_ANTI,
true);
}
......
2018-01-30 Jakub Jelinek <jakub@redhat.com>
PR rtl-optimization/83986
* gcc.dg/pr83986.c: New test.
2018-01-30 Bill Seurer <seurer@linux.vnet.ibm.com>
PR 58684
......
/* PR rtl-optimization/83986 */
/* { dg-do compile } */
/* { dg-options "-g -O2 -fsched2-use-superblocks -funwind-tables --param max-pending-list-length=1" } */
int v;
int
foo (int x)
{
v &= !!v && !!x;
if (v != 0)
foo (0);
return 0;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment