modulo-sched: prevent division by zero (PR87979)
authorRoman Zhuykov <zhroma@ispras.ru>
Tue, 23 Apr 2019 13:14:57 +0000 (13:14 +0000)
committerRoman Zhuykov <zhroma@gcc.gnu.org>
Tue, 23 Apr 2019 13:14:57 +0000 (13:14 +0000)
commit9fe3064bc60752a5252d88533cadb097ead5e05e
treef8000fbfdb7a7367fcbde29235c0f55ad62aab5b
parent8d64622fceaac7f27b6e7c35fca9f91236f34b8d
modulo-sched: prevent division by zero (PR87979)

PR rtl-optimization/87979
* modulo-sched.c (sms_schedule): Start ii value "mii" should
not equal zero.

testsuite:

PR rtl-optimization/87979
* gcc.dg/pr87979.c: New test.

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