https://gcc.gnu.org/bugzilla/show_bug.cgi?id=85412
--- Comment #14 from Alexander Monakov <amonakov at gcc dot gnu.org> --- Author: amonakov Date: Mon Apr 1 18:05:08 2019 New Revision: 270065 URL: https://gcc.gnu.org/viewcvs?rev=270065&root=gcc&view=rev Log: sel-sched: correct reset of reset_sched_cycles_p (PR 85412) 2019-04-01 Andrey Belevantsev <a...@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. Added: trunk/gcc/testsuite/gcc.dg/pr85412.c Modified: trunk/gcc/ChangeLog trunk/gcc/sel-sched.c trunk/gcc/testsuite/ChangeLog