sel-sched: correct reset of reset_sched_cycles_p (PR 85412)
authorAndrey Belevantsev <abel@ispras.ru>
Mon, 1 Apr 2019 18:05:08 +0000 (21:05 +0300)
committerAlexander Monakov <amonakov@gcc.gnu.org>
Mon, 1 Apr 2019 18:05:08 +0000 (21:05 +0300)
commit4b52560099c1b744a0e639daea4805fe10fb3219
tree6fb365fd3a34328afb00b2fd67c67e9f56cf9595
parent5ed22cbbfce94c6fca8e4247a74315aacb759918
sel-sched: correct reset of reset_sched_cycles_p (PR 85412)

2019-04-01  Andrey Belevantsev  <abel@ispras.ru>

PR rtl-optimization/85412
* sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
sel_sched_region_1, not after.

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

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