diff options
author | Sebastian Pop <sebastian.pop@amd.com> | 2009-11-25 05:09:36 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2009-11-25 05:09:36 +0000 |
commit | 5c6c42c98d9a324859fb338a20abda1be82b9bda (patch) | |
tree | 3eeff7406c772b94df31eb9b98f5ad05912452c3 /gcc/graphite-poly.h | |
parent | f58be90efba79bec87e9bc526fa57106c532d9e0 (diff) | |
download | gcc-5c6c42c98d9a324859fb338a20abda1be82b9bda.tar.gz |
graphite-blocking.c (lst_do_strip_mine): Avoid strip mining the root of the LST.
2009-10-15 Sebastian Pop <sebastian.pop@amd.com>
* 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
Diffstat (limited to 'gcc/graphite-poly.h')
-rw-r--r-- | gcc/graphite-poly.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/gcc/graphite-poly.h b/gcc/graphite-poly.h index 64a082e4125..8165d35fb49 100644 --- a/gcc/graphite-poly.h +++ b/gcc/graphite-poly.h @@ -714,6 +714,12 @@ static inline int lst_depth (lst_p lst) { if (!lst) + return -2; + + /* The depth of the outermost "fake" loop is -1. This outermost + loop does not have a loop father and it is just a container, as + in the loop representation of GCC. */ + if (!LST_LOOP_FATHER (lst)) return -1; return lst_depth (LST_LOOP_FATHER (lst)) + 1; |