mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-22 11:31:05 +08:00
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
This commit is contained in:
parent
8d75ec872b
commit
c0fe753b7d
@ -1,3 +1,7 @@
|
||||
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>
|
||||
|
||||
* 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)
|
||||
|
||||
if (bb->loop_father == loop)
|
||||
stmt = new_lst_stmt (pbb);
|
||||
else if (flow_bb_inside_loop_p (loop, bb))
|
||||
{
|
||||
loop_p next = loop->inner;
|
||||
|
||||
while (next && !flow_bb_inside_loop_p (next, bb))
|
||||
next = next->next;
|
||||
|
||||
stmt = loop_to_lst (next, bbs, i);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (flow_bb_inside_loop_p (loop, bb))
|
||||
stmt = loop_to_lst (loop->inner, bbs, i);
|
||||
else
|
||||
{
|
||||
loop_p next = loop;
|
||||
|
||||
while ((next = next->next)
|
||||
&& !flow_bb_inside_loop_p (next, bb));
|
||||
|
||||
if (!next)
|
||||
return new_lst_loop (seq);
|
||||
|
||||
stmt = loop_to_lst (next, bbs, i);
|
||||
}
|
||||
(*i)--;
|
||||
return new_lst_loop (seq);
|
||||
}
|
||||
|
||||
VEC_safe_push (lst_p, heap, seq, stmt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user