https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87979

--- Comment #5 from Roman Zhuykov <zhroma at gcc dot gnu.org> ---
Author: zhroma
Date: Fri Apr 26 16:04:54 2019
New Revision: 270609

URL: https://gcc.gnu.org/viewcvs?rev=270609&root=gcc&view=rev
Log:
Backport modulo-sched fixes from mainline

2019-04-23  Roman Zhuykov  <zhr...@ispras.ru>

modulo-sched: prevent division by zero (PR87979)

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

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.

gcc/testsuite:

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

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

Added:
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/pr84032.c
    branches/gcc-8-branch/gcc/testsuite/gcc.dg/pr87979.c
Modified:
    branches/gcc-8-branch/gcc/ChangeLog
    branches/gcc-8-branch/gcc/modulo-sched.c
    branches/gcc-8-branch/gcc/testsuite/ChangeLog

Reply via email to