re PR tree-optimization/83963 ([graphite] ICE in merge_sese, at graphite-scop-detecti...
authorRichard Biener <rguenther@suse.de>
Mon, 22 Jan 2018 13:10:57 +0000 (13:10 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Mon, 22 Jan 2018 13:10:57 +0000 (13:10 +0000)
commit1dba94d42c835094c540e6cbeeaaa3c2e068a624
tree354993efe4c080b33c3875b02d46fb0d0744a52f
parent74e95ed04f70235f2f0a6de128369cf8b2bb8dcd
re PR tree-optimization/83963 ([graphite] ICE in merge_sese, at graphite-scop-detection.c:517)

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

PR tree-optimization/83963
* graphite-scop-detection.c (scop_detection::get_sese): Delay
including the loop exit block.
(scop_detection::merge_sese): Likewise.
(scop_detection::add_scop): Do it here instead.

* gcc.dg/graphite/pr83963.c: New testcase.

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