From 1ee9ef73c3f428df74ad1dad692b493f4210e049 Mon Sep 17 00:00:00 2001 From: Aditya Kumar Date: Wed, 15 Jul 2015 21:36:55 +0000 Subject: [PATCH] graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in case of a return statement in scop. * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in case of a return statement in scop. Co-Authored-By: Sebastian Pop From-SVN: r225849 --- gcc/ChangeLog | 6 ++++++ gcc/graphite-scop-detection.c | 1 - 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 52110ee9c9e..6600494d878 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2015-07-15 Aditya Kumar + Sebastian Pop + + * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in + case of a return statement in scop. + 2015-07-15 Aditya Kumar Sebastian Pop diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c index 47e0da046e1..b45a6823df1 100644 --- a/gcc/graphite-scop-detection.c +++ b/gcc/graphite-scop-detection.c @@ -349,7 +349,6 @@ stmt_simple_for_scop_p (basic_block scop_entry, loop_p outermost_loop, switch (gimple_code (stmt)) { - case GIMPLE_RETURN: case GIMPLE_LABEL: return true; -- 2.30.2