modulo-sched: fix branch rescheduling issue (PR92591)
authorRoman Zhuykov <zhroma@ispras.ru>
Fri, 13 Dec 2019 17:33:38 +0000 (17:33 +0000)
committerRoman Zhuykov <zhroma@gcc.gnu.org>
Fri, 13 Dec 2019 17:33:38 +0000 (17:33 +0000)
commitfaab8a70f2c40758c8bb15303098f3b824bafb60
tree38e16ed2a5fd5e9cd6d0de66e5197250d562efa3
parentc420be8b3c5fd9e9d80dd583e790f0c2a7c4954b
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.

From-SVN: r279377
gcc/ChangeLog
gcc/modulo-sched.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr92951-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/pr92951-2.c [new file with mode: 0644]