]> git.ipfire.org Git - thirdparty/gcc.git/commit
Add missing unit dependence vector in data dependence analysis
authorBin Cheng <bin.cheng@linux.alibaba.com>
Wed, 13 May 2020 03:37:47 +0000 (11:37 +0800)
committerBin Cheng <bin.cheng@linux.alibaba.com>
Wed, 13 May 2020 03:37:47 +0000 (11:37 +0800)
commitf6e1a4cd83190746b6544917f7526fa480ca5f18
treef7cd60b573c8a867fbab2c5d81da5b095dce13fd
parent0fec3f62b9bfc03e5088a09036791c2ac84fe0c8
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.

2020-05-13  Bin Cheng  <bin.cheng@linux.alibaba.com>
PR tree-optimization/94969

gcc/
    * tree-data-dependence.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/
    * gcc.dg/tree-ssa/pr94969.c: New test.
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/tree-ssa/pr94969.c [new file with mode: 0644]
gcc/tree-data-ref.c
gcc/tree-loop-distribution.c