]> git.ipfire.org Git - thirdparty/gcc.git/commit
graphite: Accept loops without data references
authorFrederik Harwath <frederik@codesourcery.com>
Tue, 16 Nov 2021 15:22:29 +0000 (16:22 +0100)
committerFrederik Harwath <frederik@codesourcery.com>
Wed, 17 Nov 2021 08:10:39 +0000 (09:10 +0100)
commit7bc13103c3ef408a1811a4d2ea935b03b6745451
tree93973728a5630813dd1741eedcbaacbc749ad4b1
parentcf481a504f4628d9cd496925a2ef4a1284ae64d5
graphite: Accept loops without data references

It seems that the check that rejects loops without data references is
only included to avoid handling non-profitable loops.  Including those
loops in Graphite's analysis enables more consistent diagnostic
messages in OpenACC "kernels" code and does not introduce any
testsuite regressions.  If executing Graphite on loops without
data references leads to noticeable compile time slow-downs for
non-OpenACC users of Graphite, the check can be re-introduced but
restricted to non-OpenACC functions.

gcc/ChangeLog:

* graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
Remove check for loops without data references.
gcc/graphite-scop-detection.c