https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92591
--- Comment #7 from Roman Zhuykov <zhroma at gcc dot gnu.org> --- Author: zhroma Date: Fri Dec 13 17:33:38 2019 New Revision: 279377 URL: https://gcc.gnu.org/viewcvs?rev=279377&root=gcc&view=rev Log: modulo-sched: fix branch rescheduling issue (PR92591) PR rtl-optimization/92591 * modulo-sched.c (ps_add_node_check_conflicts): Improve checking for history > 0 case. testsuite: PR rtl-optimization/92591 * gcc.dg/pr92951-1.c: New test. * gcc.dg/pr92951-2.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr92951-1.c trunk/gcc/testsuite/gcc.dg/pr92951-2.c Modified: trunk/gcc/ChangeLog trunk/gcc/modulo-sched.c trunk/gcc/testsuite/ChangeLog