]> 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)
committerKwok Cheung Yeung <kcy@codesourcery.com>
Tue, 21 Jun 2022 13:11:54 +0000 (14:11 +0100)
commita4439ac7d05fa938aca8100f9e1b13922f57831a
treec74515eb61d6ca99a5e214bd3847eac21fdcf90f
parentb1e894b815ebf8d8a757cf324c93f17582b62b86
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.cc (scop_detection::harmful_loop_in_region):
Remove check for loops without data references.
gcc/ChangeLog.omp
gcc/graphite-scop-detection.cc