Commit 129d9dc2 by Richard Biener Committed by Richard Biener

graphite-scop-detection.c (scop_detection::can_represent_loop): Do not iterate…

graphite-scop-detection.c (scop_detection::can_represent_loop): Do not iterate to sibling loops but only to siblings of inner loops.

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
parent 5cf2a5bb
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
......
......@@ -975,11 +975,9 @@ scop_detection::can_represent_loop (loop_p loop, sese_l scop)
{
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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment