https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87022
--- Comment #6 from bin cheng <amker at gcc dot gnu.org> --- Author: amker Date: Fri Feb 1 03:11:08 2019 New Revision: 268441 URL: https://gcc.gnu.org/viewcvs?rev=268441&root=gcc&view=rev Log: Backport from mainline 2018-10-15 Bin Cheng <bin.ch...@linux.alibaba.com> PR tree-optimization/87022 * tree-loop-distribution.c (pg_add_dependence_edges): Check all bits in dist vector rather than the first one. gcc/testsuite 2018-10-15 Bin Cheng <bin.ch...@linux.alibaba.com> PR tree-optimization/87022 * gcc.dg/tree-ssa/pr87022.c: New test. Added: branches/gcc-8-branch/gcc/testsuite/gcc.dg/tree-ssa/pr87022.c Modified: branches/gcc-8-branch/gcc/ChangeLog branches/gcc-8-branch/gcc/testsuite/ChangeLog branches/gcc-8-branch/gcc/tree-loop-distribution.c