diff options
author | Richard Biener <rguenther@suse.de> | 2025-01-28 15:01:25 +0100 |
---|---|---|
committer | Richard Biener <rguenth@gcc.gnu.org> | 2025-01-28 15:03:05 +0100 |
commit | 3ccbc8c9d182c380e396631b2b5a683de4fddba9 (patch) | |
tree | 22adedd99603f823faa4856a8ebeb10824405e00 | |
parent | a235c45354de9a89ba2f6f12d3aac42efc18f311 (diff) | |
download | gcc-3ccbc8c9d182c380e396631b2b5a683de4fddba9.zip gcc-3ccbc8c9d182c380e396631b2b5a683de4fddba9.tar.gz gcc-3ccbc8c9d182c380e396631b2b5a683de4fddba9.tar.bz2 |
tree-optimization/112859 - add comment
This adds a comment before the workaround, indicating flaky
dependence analysis.
PR tree-optimization/112859
* tree-loop-distribution.cc
(loop_distribution::pg_add_dependence_edges): Add comment.
-rw-r--r-- | gcc/tree-loop-distribution.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gcc/tree-loop-distribution.cc b/gcc/tree-loop-distribution.cc index 9d9d2ae..fc0cd39 100644 --- a/gcc/tree-loop-distribution.cc +++ b/gcc/tree-loop-distribution.cc @@ -2193,7 +2193,9 @@ loop_distribution::pg_add_dependence_edges (struct graph *rdg, int dir, this_dir = -this_dir; } /* When then dependence distance of the innermost common - loop of the DRs is zero we have a conflict. */ + loop of the DRs is zero we have a conflict. This is + due to wonky dependence analysis which sometimes + ends up using a zero distance in place of unknown. */ auto l1 = gimple_bb (DR_STMT (dr1))->loop_father; auto l2 = gimple_bb (DR_STMT (dr2))->loop_father; int idx = index_in_loop_nest (find_common_loop (l1, l2)->num, |