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-blocking.c | |
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-blocking.c')
-rw-r--r-- | gcc/graphite-blocking.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gcc/graphite-blocking.c b/gcc/graphite-blocking.c index b5f5acd74ba..e44ad8a921c 100644 --- a/gcc/graphite-blocking.c +++ b/gcc/graphite-blocking.c @@ -242,8 +242,9 @@ lst_do_strip_mine (lst_p lst) for (i = 0; VEC_iterate (lst_p, LST_SEQ (lst), i, l); i++) res |= lst_do_strip_mine (l); - if (pbb_strip_mine_profitable_p (LST_PBB (lst_find_first_pbb (lst)), - lst_depth (lst), stride)) + if (lst_depth (lst) >= 0 + && pbb_strip_mine_profitable_p (LST_PBB (lst_find_first_pbb (lst)), + lst_depth (lst), stride)) { res |= lst_do_strip_mine_loop (lst, lst_depth (lst)); lst_add_loop_under_loop (lst); |