Re: [PR69634] fix debug_insn-inconsistent REG_N_CALLS_CROSSED

2016-03-08 Thread Andreas Schwab
Alexandre Oliva writes: > diff --git a/gcc/testsuite/gcc.dg/pr69634.c b/gcc/testsuite/gcc.dg/pr69634.c > new file mode 100644 > index 000..837bd57 > --- /dev/null > +++ b/gcc/testsuite/gcc.dg/pr69634.c > @@ -0,0 +1,22 @@ > +/* { dg-do compile } */ > +/* { dg-options "-O2 -fno-dce -fschedule-i

Re: [PR69634] fix debug_insn-inconsistent REG_N_CALLS_CROSSED

2016-02-09 Thread Jeff Law
On 02/06/2016 03:06 AM, Alexandre Oliva wrote: The testcase has a debug insn referencing a pseudo right before an insn that modifies the pseudo. Without debug insns, REG_N_CALLS_CROSSED was zero for that pseudo, so sched_analyze_reg added a dep between the pseudo setter and an earlier (lib)call.

Re: [PR69634] fix debug_insn-inconsistent REG_N_CALLS_CROSSED

2016-02-08 Thread Jeff Law
On 02/06/2016 03:06 AM, Alexandre Oliva wrote: The testcase has a debug insn referencing a pseudo right before an insn that modifies the pseudo. Without debug insns, REG_N_CALLS_CROSSED was zero for that pseudo, so sched_analyze_reg added a dep between the pseudo setter and an earlier (lib)call.

Re: [PR69634] fix debug_insn-inconsistent REG_N_CALLS_CROSSED

2016-02-06 Thread Jakub Jelinek
On Sat, Feb 06, 2016 at 08:06:18AM -0200, Alexandre Oliva wrote: > The testcase has a debug insn referencing a pseudo right before an > insn that modifies the pseudo. > > Without debug insns, REG_N_CALLS_CROSSED was zero for that pseudo, so > sched_analyze_reg added a dep between the pseudo setter

[PR69634] fix debug_insn-inconsistent REG_N_CALLS_CROSSED

2016-02-06 Thread Alexandre Oliva
The testcase has a debug insn referencing a pseudo right before an insn that modifies the pseudo. Without debug insns, REG_N_CALLS_CROSSED was zero for that pseudo, so sched_analyze_reg added a dep between the pseudo setter and an earlier (lib)call. With debug insns, we miscomputed REG_N_CALLS_CR