summaryrefslogtreecommitdiff
path: root/gcc/graphite-isl-ast-to-gimple.c
diff options
context:
space:
mode:
authorspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-02 23:01:24 +0000
committerspop <spop@138bc75d-0d04-0410-961f-82ee72b054a4>2015-12-02 23:01:24 +0000
commite75b0ae0fd8e6b241d82cb4aedf575f1af8a72fa (patch)
treee08d24a370c3d7d299cccc488b294b839271aca6 /gcc/graphite-isl-ast-to-gimple.c
parent0001fd8dfb13c3eb6fd40cc3d854dcb00ff80734 (diff)
downloadgcc-e75b0ae0fd8e6b241d82cb4aedf575f1af8a72fa.tar.gz
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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@231211 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/graphite-isl-ast-to-gimple.c')
-rw-r--r--gcc/graphite-isl-ast-to-gimple.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gcc/graphite-isl-ast-to-gimple.c b/gcc/graphite-isl-ast-to-gimple.c
index 3139f302ff0..497b200f55a 100644
--- a/gcc/graphite-isl-ast-to-gimple.c
+++ b/gcc/graphite-isl-ast-to-gimple.c
@@ -2944,6 +2944,7 @@ translate_isl_ast_to_gimple::copy_bb_and_scalar_dependences (basic_block bb,
/* If a corresponding merge-point was not found, then abort codegen. */
if (phi_bb->loop_father != loop_father
+ || !bb_in_sese_p (phi_bb, region->if_region->true_region->region)
|| !copy_cond_phi_nodes (bb, phi_bb, iv_map))
{
codegen_error = true;