]> 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>
Mon, 20 Nov 2023 13:58:10 +0000 (14:58 +0100)
commit3b34902417259031823bff7f853f615a60464bbd
treeaae9f15aba65c892311fbfa60b2a545b41f4f4eb
parentb7a1b89e60c4b492f85b47e02c12b01dd8a6e28b
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.
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