2017-09-19 Richard Biener <rguenther@suse.de>
* graphite-scop-detection.c (scop_detection::can_represent_loop):
Do not iterate to sibling loops but only to siblings of inner
loops.
From-SVN: r252962
+2017-09-19 Richard Biener <rguenther@suse.de>
+
+ * graphite-scop-detection.c (scop_detection::can_represent_loop):
+ Do not iterate to sibling loops but only to siblings of inner
+ loops.
+
2017-09-18 Andreas Schwab <schwab@linux-m68k.org>
PR target/81613
{
if (!can_represent_loop_1 (loop, scop))
return false;
- if (loop->inner && !can_represent_loop (loop->inner, scop))
- return false;
- if (loop->next && !can_represent_loop (loop->next, scop))
- return false;
-
+ for (loop_p inner = loop->inner; inner; inner = inner->next)
+ if (!can_represent_loop (inner, scop))
+ return false;
return true;
}