diff options
author | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-25 05:09:36 +0000 |
---|---|---|
committer | spop <spop@138bc75d-0d04-0410-961f-82ee72b054a4> | 2009-11-25 05:09:36 +0000 |
commit | 43217ce91110f35e448c42647e969093efc4e8e9 (patch) | |
tree | 3eeff7406c772b94df31eb9b98f5ad05912452c3 /gcc/graphite-poly.h | |
parent | 9b6c835ccc29616a75588366755df30ba0c26a21 (diff) | |
download | gcc-43217ce91110f35e448c42647e969093efc4e8e9.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@154593 138bc75d-0d04-0410-961f-82ee72b054a4
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; |