[Bug rtl-optimization/69032] [5/6 Regression] ICE: in cfg_preds_1, at sel-sched-ir.c:4809 with -fsched-pressure -fsel-sched-pipelining -fselective-scheduling

2016-03-15 Thread abel at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69032

--- Comment #3 from Andrey Belevantsev  ---
Author: abel
Date: Tue Mar 15 15:42:07 2016
New Revision: 234219

URL: https://gcc.gnu.org/viewcvs?rev=234219=gcc=rev
Log:
gcc/

PR rtl-optimization/69032
* sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
looping backwards over basic block insns.

testsuite/

PR rtl-optimization/69032
* gcc.dg/pr69032.c: New test.


Added:
trunk/gcc/testsuite/gcc.dg/pr69032.c
Modified:
trunk/gcc/ChangeLog
trunk/gcc/sel-sched-ir.c
trunk/gcc/testsuite/ChangeLog

[Bug rtl-optimization/69032] [5/6 Regression] ICE: in cfg_preds_1, at sel-sched-ir.c:4809 with -fsched-pressure -fsel-sched-pipelining -fselective-scheduling

2016-01-27 Thread abel at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69032

--- Comment #2 from Andrey Belevantsev  ---
Created attachment 37490
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=37490=edit
proposed patch

We fail to find the proper seqno for the fresh bookkeeping copy here.  The
problem is that in get_seqno_by_preds we are iterating over bb from the given
insn backwards up to the first bb insn.  We skip the initial insn when
iterating over bb, yet we should take seqno from it.  The code in question
originally didn't include bb head when iterating, and was patched to do so in
2011.  The patch was wrong and instead of including bb head managed to exclude
the original insn itself.  By reading the original and patched code I've
convinced myself that the right fix will be to do what the patch intended and
include both the initial insn and the bb head in the iteration.  The patch
fixes the reported testcase but I will have to test it more thoroughly before
submitting.

[Bug rtl-optimization/69032] [5/6 Regression] ICE: in cfg_preds_1, at sel-sched-ir.c:4809 with -fsched-pressure -fsel-sched-pipelining -fselective-scheduling

2016-01-14 Thread abel at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69032

Andrey Belevantsev  changed:

   What|Removed |Added

 Status|NEW |ASSIGNED
   Assignee|unassigned at gcc dot gnu.org  |abel at gcc dot gnu.org

[Bug rtl-optimization/69032] [5/6 Regression] ICE: in cfg_preds_1, at sel-sched-ir.c:4809 with -fsched-pressure -fsel-sched-pipelining -fselective-scheduling

2016-01-13 Thread law at redhat dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69032

Jeffrey A. Law  changed:

   What|Removed |Added

   Priority|P3  |P4

[Bug rtl-optimization/69032] [5/6 Regression] ICE: in cfg_preds_1, at sel-sched-ir.c:4809 with -fsched-pressure -fsel-sched-pipelining -fselective-scheduling

2016-01-11 Thread jakub at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69032

Jakub Jelinek  changed:

   What|Removed |Added

 Status|UNCONFIRMED |NEW
   Last reconfirmed||2016-01-11
 CC||amonakov at gcc dot gnu.org,
   ||jakub at gcc dot gnu.org,
   ||segher at gcc dot gnu.org
 Ever confirmed|0   |1

--- Comment #1 from Jakub Jelinek  ---
I need also -mcpu=G4 to reproduce.
Started with r218595.

[Bug rtl-optimization/69032] [5/6 Regression] ICE: in cfg_preds_1, at sel-sched-ir.c:4809 with -fsched-pressure -fsel-sched-pipelining -fselective-scheduling

2016-01-06 Thread pinskia at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=69032

Andrew Pinski  changed:

   What|Removed |Added

   Target Milestone|--- |5.4