https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80112
Roman Zhuykov <zhroma at ispras dot ru> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |zhroma at ispras dot ru --- Comment #5 from Roman Zhuykov <zhroma at ispras dot ru> --- Created attachment 41049 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=41049&action=edit maybe more proper fix 6 years ago I was solving issue with same code lines and with Richard Sandiford's help found a bit better solution, it was even approved, but unfortunately we forgot to commit it. Discussion links: https://gcc.gnu.org/ml/gcc-patches/2011-07/msg01803.html https://gcc.gnu.org/ml/gcc-patches/2011-09/msg02049.html https://gcc.gnu.org/ml/gcc-patches/2012-02/msg00479.html Maybe it's better to apply that old patch? PS. All my modulo-sched improvements described here together https://gcc.gnu.org/ml/gcc-patches/2017-02/msg01647.html