From 5c6c42c98d9a324859fb338a20abda1be82b9bda Mon Sep 17 00:00:00 2001 From: Sebastian Pop Date: Wed, 25 Nov 2009 05:09:36 +0000 Subject: graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the root of the LST. 2009-10-15 Sebastian Pop * graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the root of the LST. * graphite-interchange.c (lst_do_interchange): Avoid interchanging the root of the LST. * graphite-poly.c (scop_to_lst): Fix LST sequence in an outermost fake loop. (print_lst): Print the root of LST in a different format. * graphite-poly.h (lst_depth): Adjust to include the root of the LST. From-SVN: r154593 --- gcc/graphite-interchange.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'gcc/graphite-interchange.c') diff --git a/gcc/graphite-interchange.c b/gcc/graphite-interchange.c index cb703f2..b42a133 100644 --- a/gcc/graphite-interchange.c +++ b/gcc/graphite-interchange.c @@ -539,8 +539,9 @@ lst_do_interchange (scop_p scop, lst_p lst) lst_p l; bool res = false; - for (i = 0; VEC_iterate (lst_p, LST_SEQ (lst), i, l); i++) - res |= lst_try_interchange (scop, lst, l); + if (lst_depth (lst) >= 0) + for (i = 0; VEC_iterate (lst_p, LST_SEQ (lst), i, l); i++) + res |= lst_try_interchange (scop, lst, l); for (i = 0; VEC_iterate (lst_p, LST_SEQ (lst), i, l); i++) res |= lst_do_interchange (scop, l); -- cgit v1.1