Commit c0fe753b by Sebastian Pop Committed by Sebastian Pop

graphite-poly.c (loop_to_lst): Fix LST creation.

2009-10-14  Sebastian Pop  <sebastian.pop@amd.com>

	* graphite-poly.c (loop_to_lst): Fix LST creation.

From-SVN: r154581
parent 8d75ec87
2009-10-14 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.c (loop_to_lst): Fix LST creation.
2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de> 2009-10-14 Tobias Grosser <grosser@fim.uni-passau.de>
* testsuite/gcc.dg/graphite/id-15.c: (8 * 8) replaced with * testsuite/gcc.dg/graphite/id-15.c: (8 * 8) replaced with
......
...@@ -834,22 +834,19 @@ loop_to_lst (loop_p loop, VEC (poly_bb_p, heap) *bbs, int *i) ...@@ -834,22 +834,19 @@ loop_to_lst (loop_p loop, VEC (poly_bb_p, heap) *bbs, int *i)
if (bb->loop_father == loop) if (bb->loop_father == loop)
stmt = new_lst_stmt (pbb); stmt = new_lst_stmt (pbb);
else else if (flow_bb_inside_loop_p (loop, bb))
{ {
if (flow_bb_inside_loop_p (loop, bb)) loop_p next = loop->inner;
stmt = loop_to_lst (loop->inner, bbs, i);
else
{
loop_p next = loop;
while ((next = next->next) while (next && !flow_bb_inside_loop_p (next, bb))
&& !flow_bb_inside_loop_p (next, bb)); next = next->next;
if (!next) stmt = loop_to_lst (next, bbs, i);
return new_lst_loop (seq); }
else
stmt = loop_to_lst (next, bbs, i); {
} (*i)--;
return new_lst_loop (seq);
} }
VEC_safe_push (lst_p, heap, seq, stmt); VEC_safe_push (lst_p, heap, seq, stmt);
......
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