]> git.ipfire.org Git - people/ms/gcc.git/commit
graphite: Extend SCoP detection dump output
authorFrederik Harwath <frederik@codesourcery.com>
Wed, 18 May 2022 05:59:42 +0000 (07:59 +0200)
committerFrederik Harwath <frederik@codesourcery.com>
Wed, 18 May 2022 12:51:46 +0000 (14:51 +0200)
commit21e2bc9fb49e30221cd0252966d5092070e1e0c5
treeb743ac1fbe67c17ed681a8fd5e0c3a177623965a
parent65851d65fb36e847a9b8ef3b0519f06d29865a14
graphite: Extend SCoP detection dump output

Extend dump output to make understanding why Graphite rejects to
include a loop in a SCoP easier (for GCC developers).

gcc/ChangeLog:

* graphite-scop-detection.cc (scop_detection::can_represent_loop):
Output reason for failure to dump file.
(scop_detection::harmful_loop_in_region): Likewise.
(scop_detection::graphite_can_represent_expr): Likewise.
(scop_detection::stmt_has_simple_data_refs_p): Likewise.
(scop_detection::stmt_simple_for_scop_p): Likewise.
(print_sese_loop_numbers): New function.
(scop_detection::add_scop): Use from here.

gcc/testsuite/ChangeLog:

* gcc.dg/graphite/scop-22a.c: New test.
gcc/graphite-scop-detection.cc
gcc/testsuite/gcc.dg/graphite/scop-22a.c [new file with mode: 0644]