Commit 75b63a91 by Sebastian Pop Committed by Sebastian Pop

graphite-poly.h (copy_lst): Do full copy of LST.

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

	* graphite-poly.h (copy_lst): Do full copy of LST.

From-SVN: r154566
parent 7cc4ff8d
2009-10-09 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.h (copy_lst): Do full copy of LST.
2009-10-07 Sebastian Pop <sebastian.pop@amd.com>
* graphite-sese-to-poly.c (reduction_phi_p): Call remove_invariant_phi
......
......@@ -678,7 +678,16 @@ copy_lst (lst_p lst)
return NULL;
if (LST_LOOP_P (lst))
return new_lst_loop (VEC_copy (lst_p, heap, LST_SEQ (lst)));
{
int i;
lst_p l;
VEC (lst_p, heap) *seq = VEC_alloc (lst_p, heap, 5);
for (i = 0; VEC_iterate (lst_p, LST_SEQ (lst), i, l); i++)
VEC_safe_push (lst_p, heap, seq, copy_lst (l));
return new_lst_loop (seq);
}
return new_lst_stmt (LST_PBB (lst));
}
......
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