public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] Graphite cannot handle return stmt
@ 2015-06-29 21:33 Aditya Kumar
  2015-06-30  0:43 ` Sebastian Pop
  0 siblings, 1 reply; 6+ messages in thread
From: Aditya Kumar @ 2015-06-29 21:33 UTC (permalink / raw)
  To: gcc-patches, hiraditya, sebpop

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

^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <1435611532-31080-1-git-send-email-hiraditya at msn dot com>]

end of thread, other threads:[~2015-07-02  7:52 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-29 21:33 [PATCH] Graphite cannot handle return stmt Aditya Kumar
2015-06-30  0:43 ` Sebastian Pop
2015-06-30  6:43   ` Tobias Grosser
2015-06-30  8:16     ` Richard Biener
     [not found] <1435611532-31080-1-git-send-email-hiraditya at msn dot com>
2015-06-30 20:55 ` Aditya Kumar
2015-07-02  7:52   ` Tobias Grosser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).