]> git.ipfire.org Git - thirdparty/gcc.git/commit
tree-optimization/112281 - loop distribution and zero dependence distances
authorRichard Biener <rguenther@suse.de>
Mon, 20 Nov 2023 12:39:52 +0000 (13:39 +0100)
committerRichard Biener <rguenther@suse.de>
Wed, 8 May 2024 11:01:14 +0000 (13:01 +0200)
commit0b409fc34e9b1ff7f90456e73128e38970c1532b
treefdf10f7424c33ade1f70294e1ff00f0d79990800
parent25add4b65a3bac262685d290a4dc93884a022576
tree-optimization/112281 - loop distribution and zero dependence distances

The following fixes an omission in dependence testing for loop
distribution.  When the overall dependence distance is not zero but
the dependence direction in the innermost common loop is = there is
a conflict between the partitions and we have to merge them.

PR tree-optimization/112281
* tree-loop-distribution.cc
(loop_distribution::pg_add_dependence_edges): For = in the
innermost common loop record a partition conflict.

* gcc.dg/torture/pr112281-1.c: New testcase.
* gcc.dg/torture/pr112281-2.c: Likewise.

(cherry picked from commit 3b34902417259031823bff7f853f615a60464bbd)
gcc/testsuite/gcc.dg/torture/pr112281-1.c [new file with mode: 0644]
gcc/testsuite/gcc.dg/torture/pr112281-2.c [new file with mode: 0644]
gcc/tree-loop-distribution.cc