This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Graphite cannot handle return stmt
- From: Aditya Kumar <hiraditya at msn dot com>
- To: gcc-patches at gcc dot gnu dot org, hiraditya at msn dot com, sebpop at gmail dot com
- Date: Mon, 29 Jun 2015 15:58:52 -0500
- Subject: [PATCH] Graphite cannot handle return stmt
- Authentication-results: sourceware.org; auth=none
No regressions.
2015-06-29 Aditya Kumar <aditya.k7@samsung.com>
Sebastian Pop <s.pop@samsung.com>
* graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in case of a return statement.
---
gcc/graphite-scop-detection.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/gcc/graphite-scop-detection.c b/gcc/graphite-scop-detection.c
index e8ddecd..a10702e 100644
--- a/gcc/graphite-scop-detection.c
+++ b/gcc/graphite-scop-detection.c
@@ -365,6 +365,8 @@ stmt_simple_for_scop_p (basic_block scop_entry, loop_p outermost_loop,
switch (gimple_code (stmt))
{
case GIMPLE_RETURN:
+ return false;
+
case GIMPLE_LABEL:
return true;
--
2.1.0.243.g30d45f7