do not insert code outside the generated region
authorAditya Kumar <aditya.k7@samsung.com>
Wed, 2 Dec 2015 23:01:24 +0000 (23:01 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Wed, 2 Dec 2015 23:01:24 +0000 (23:01 +0000)
commit1a67d2cd3c2704ca472bd845d384a7dbe065ac4f
treee08d24a370c3d7d299cccc488b294b839271aca6
parentfa26da223666589dee005765740ed40ee290c22f
do not insert code outside the generated region

on the testcase we used to generate code in the function entry bb_0,
and that choked the cfg verifier.

* graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
that insertion point is still in the region.

* gfortran.dg/graphite/id-26.f03: New.

Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
From-SVN: r231211
gcc/ChangeLog
gcc/graphite-isl-ast-to-gimple.c
gcc/testsuite/ChangeLog
gcc/testsuite/gfortran.dg/graphite/id-26.f03 [new file with mode: 0644]