Commit b8745012 by Sebastian Pop Committed by Sebastian Pop

Fix lst_update_scattering.

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

	* graphite-poly.h (lst_update_scattering_seq): Removed.
	(lst_update_scattering): Correctly handle outermost loop dewey
	renumbering.

From-SVN: r164801
parent 22280f63
2010-09-30 Sebastian Pop <sebastian.pop@amd.com> 2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.h (lst_update_scattering_seq): Removed.
(lst_update_scattering): Correctly handle outermost loop dewey
renumbering.
2010-09-30 Sebastian Pop <sebastian.pop@amd.com>
* graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
lst_strip_mine_profitable_p. Call lst_niter_for_loop. lst_strip_mine_profitable_p. Call lst_niter_for_loop.
* graphite-poly.h (lst_niter_for_loop): New. * graphite-poly.h (lst_niter_for_loop): New.
2010-09-09 Sebastian Pop <sebastian.pop@amd.com> 2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
* graphite-poly.h (lst_update_scattering_seq): Removed.
(lst_update_scattering): Correctly handle outermost loop dewey
renumbering.
2010-09-09 Sebastian Pop <sebastian.pop@amd.com>
* graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed * graphite-blocking.c (pbb_strip_mine_profitable_p): Renamed
lst_strip_mine_profitable_p. Call lst_niter_for_loop. lst_strip_mine_profitable_p. Call lst_niter_for_loop.
* graphite-poly.h (lst_niter_for_loop): New. * graphite-poly.h (lst_niter_for_loop): New.
......
...@@ -1120,14 +1120,20 @@ lst_update_scattering_under (lst_p lst, int level, int dewey) ...@@ -1120,14 +1120,20 @@ lst_update_scattering_under (lst_p lst, int level, int dewey)
pbb_update_scattering (LST_PBB (lst), level, dewey); pbb_update_scattering (LST_PBB (lst), level, dewey);
} }
/* Updates the scattering of all the PBBs under LST and in sequence /* Updates the all the scattering levels of all the PBBs under
with LST. */ LST. */
static inline void static inline void
lst_update_scattering_seq (lst_p lst) lst_update_scattering (lst_p lst)
{ {
int i; int i;
lst_p l; lst_p l;
if (!lst)
return;
if (LST_LOOP_FATHER (lst))
{
lst_p father = LST_LOOP_FATHER (lst); lst_p father = LST_LOOP_FATHER (lst);
int dewey = lst_dewey_number (lst); int dewey = lst_dewey_number (lst);
int level = lst_depth (lst); int level = lst_depth (lst);
...@@ -1136,23 +1142,9 @@ lst_update_scattering_seq (lst_p lst) ...@@ -1136,23 +1142,9 @@ lst_update_scattering_seq (lst_p lst)
for (i = dewey; VEC_iterate (lst_p, LST_SEQ (father), i, l); i++) for (i = dewey; VEC_iterate (lst_p, LST_SEQ (father), i, l); i++)
lst_update_scattering_under (l, level, i); lst_update_scattering_under (l, level, i);
} }
/* Updates the all the scattering levels of all the PBBs under
LST. */
static inline void
lst_update_scattering (lst_p lst)
{
int i;
lst_p l;
if (!lst || !LST_LOOP_P (lst))
return;
if (LST_LOOP_FATHER (lst))
lst_update_scattering_seq (lst);
if (LST_LOOP_P (lst))
for (i = 0; VEC_iterate (lst_p, LST_SEQ (lst), i, l); i++) for (i = 0; VEC_iterate (lst_p, LST_SEQ (lst), i, l); i++)
lst_update_scattering (l); lst_update_scattering (l);
} }
......
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