modulo-sched: fix branch scheduling issue (PR84032)
authorRoman Zhuykov <zhroma@gcc.gnu.org>
Tue, 23 Apr 2019 12:53:43 +0000 (12:53 +0000)
committerRoman Zhuykov <zhroma@gcc.gnu.org>
Tue, 23 Apr 2019 12:53:43 +0000 (12:53 +0000)
commit8d64622fceaac7f27b6e7c35fca9f91236f34b8d
tree77aa4a640f4fda00d53364b6d16c115d179a6734
parent038bc9bfd6dfd94336e0bebf416f1bbc3ed3272e
modulo-sched: fix branch scheduling issue (PR84032)

PR rtl-optimization/84032
* modulo-sched.c (ps_insn_find_column): Change condition so that
branch will always be the last insn in a row inside partial
schedule.

testsuite:

PR rtl-optimization/84032
* gcc.dg/pr84032.c: New test.

From-SVN: r270511
gcc/ChangeLog
gcc/modulo-sched.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr84032.c [new file with mode: 0644]