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
This commit is contained in:
Richard Biener 2017-09-19 07:14:12 +00:00 committed by Richard Biener
parent 5cf2a5bbdd
commit 129d9dc292
2 changed files with 9 additions and 5 deletions

View File

@ -1,3 +1,9 @@
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

View File

@ -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;
}