[Bug rtl-optimization/84032] ICE in optimize_sc, at modulo-sched.c:1064

zhroma at gcc dot gnu.org gcc-bugzilla@gcc.gnu.org
Fri Apr 26 16:05:00 GMT 2019


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

--- Comment #7 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  <zhroma@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


More information about the Gcc-bugs mailing list