re PR tree-optimization/90328 (Wrong loop distribution with aliasing)
authorRichard Biener <rguenther@suse.de>
Mon, 6 May 2019 12:38:35 +0000 (12:38 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 6 May 2019 12:38:35 +0000 (12:38 +0000)
commit1d0b81c64c05f40b94bd221558d0339c732d8cc4
treef8264b89d277701f04c4d39df3c9cfbbb60354bd
parentb744fc85f549534bcbc36dedcc1659c02e16c617
re PR tree-optimization/90328 (Wrong loop distribution with aliasing)

2019-05-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/90328
* tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
* tree-data-ref.c (dr_may_alias_p): Check whether the clique
is valid in the loop nest before using it.
(initialize_data_dependence_relation): Adjust.
* graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
loop as loop-nest to dr_may_alias_p.

* gcc.dg/torture/pr90328.c: New testcase.

From-SVN: r270906
gcc/ChangeLog
gcc/graphite-scop-detection.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/torture/pr90328.c [new file with mode: 0644]
gcc/tree-data-ref.c
gcc/tree-data-ref.h