re PR tree-optimization/87022 (miscompilation with -ftree-loop-distribution)
authorBin Cheng <bin.cheng@linux.alibaba.com>
Mon, 15 Oct 2018 11:35:56 +0000 (11:35 +0000)
committerBin Cheng <amker@gcc.gnu.org>
Mon, 15 Oct 2018 11:35:56 +0000 (11:35 +0000)
commit0df7c778ed50095a0c4b266b4beb8b783de832a8
treed04024259b2c9432259a627cb1a3c91d1045e794
parent61e189a874392a296e46609502228019cae42e19
re PR tree-optimization/87022 (miscompilation with -ftree-loop-distribution)

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
PR tree-optimization/87022
* gcc.dg/tree-ssa/pr87022.c: New test.

From-SVN: r265161
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr87022.c [new file with mode: 0644]
gcc/tree-loop-distribution.c