]> gcc.gnu.org Git - gcc.git/commit
Add missing unit dependence vector in data dependence analysis
authorBin Cheng <bin.cheng@linux.alibaba.com>
Sat, 20 Jun 2020 08:56:21 +0000 (16:56 +0800)
committerJakub Jelinek <jakub@redhat.com>
Thu, 17 Sep 2020 15:40:31 +0000 (17:40 +0200)
commit000705acb47766b2f8b850a0e8a6a4c935a1730d
tree8998b8886c7dda4c4cfac7bcb440e713e849c8c3
parent1a261d5a3612e216e17ae0a8e048eb5ae63ddcb0
Add missing unit dependence vector in data dependence analysis

Current data dependence analysis misses unit distant vector if DRs in
DDR have the same invariant access functions.  This adds the vector as
the constant access function case.

Also fix typo in testcase.

Backport from master commit: 287552950d56be47adb6b6bf2eae2d612233eaec
and f6e1a4cd83190746b6544917f7526fa480ca5f18

2020-06-20  Bin Cheng  <bin.cheng@linux.alibaba.com>

gcc/
PR tree-optimization/94969
* tree-data-ref.c (constant_access_functions): Rename to...
(invariant_access_functions): ...this.  Add parameter.  Check for
invariant access function, rather than constant.
(build_classic_dist_vector): Call above function.
* tree-loop-distribution.c (pg_add_dependence_edges): Add comment.

gcc/testsuite/
PR tree-optimization/94969
* gcc.dg/tree-ssa/pr94969.c: New test.

2020-06-20  Jakub Jelinek  <jakub@redhat.com>

gcc/testsuite/
PR tree-optimization/95110
* gcc.dg/tree-ssa/pr94969.c: Swap scan-tree-dump-not arguments.
gcc/testsuite/gcc.dg/tree-ssa/pr94969.c [new file with mode: 0644]
gcc/tree-data-ref.c
gcc/tree-loop-distribution.c
This page took 0.066036 seconds and 5 git commands to generate.