re PR rtl-optimization/83530 (ICE in reset_sched_cycles_in_current_ebb, at sel-sched...
authorAndrey Belevantsev <abel@ispras.ru>
Mon, 9 Apr 2018 09:08:28 +0000 (12:08 +0300)
committerAndrey Belevantsev <abel@gcc.gnu.org>
Mon, 9 Apr 2018 09:08:28 +0000 (12:08 +0300)
commit33bacbcba534374b3e2c7693ae9147b96540f43f
tree076894db443b34e02d669dd373fb107c98aff440
parenta0873952aa3499abd6f7b49cf9f876397c3b631b
re PR rtl-optimization/83530 (ICE in reset_sched_cycles_in_current_ebb, at sel-sched.c:7150)

       PR rtl-optimization/83530

       * sel-sched.c (force_next_insn): New global variable.
       (remove_insn_for_debug): When force_next_insn is true, also leave only
       next insn in the ready list.
       (sel_sched_region): When the region wasn't scheduled, make another pass
       over it with force_next_insn set to 1.

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

From-SVN: r259228
gcc/ChangeLog
gcc/sel-sched.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr83530.c [new file with mode: 0644]