re PR tree-optimization/83963 ([graphite] ICE in merge_sese, at graphite-scop-detecti...
authorRichard Biener <rguenther@suse.de>
Tue, 23 Jan 2018 08:00:20 +0000 (08:00 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 23 Jan 2018 08:00:20 +0000 (08:00 +0000)
commit950d1cd9ba49d2420f77ae0bc04be4fd6d0d009e
treef54b90b6860670d786d683501d9873f5e67ee274
parent2e73a89bc9a73ef83b7b87fb65b8293c0ae8b693
re PR tree-optimization/83963 ([graphite] ICE in merge_sese, at graphite-scop-detection.c:517)

2018-01-23  Richard Biener  <rguenther@suse.de>

PR tree-optimization/83963
* graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
Properly terminate dominator walk when crossing the exit edge not
when visiting its source block.

* gfortran.dg/graphite/pr83963.f: New testcase.
* gcc.dg/graphite/pr83963-2.c: Likewise.

From-SVN: r256973
gcc/ChangeLog
gcc/graphite-scop-detection.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/pr83963-2.c [new file with mode: 0644]
gcc/testsuite/gfortran.dg/graphite/pr83963.f [new file with mode: 0644]