Fix PR47654: Loop blocking should strip-mine at least two loops.
authorSebastian Pop <sebastian.pop@amd.com>
Tue, 5 Jul 2011 14:50:34 +0000 (14:50 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Tue, 5 Jul 2011 14:50:34 +0000 (14:50 +0000)
commitcec11ec4142e5d300aa36cbee1b54adefdee7711
treebb332b8bbbc0bb93e01d2b53950af05852a521d7
parent9b0d314a45803f7663e37f669488c695bcf253fa
Fix PR47654: Loop blocking should strip-mine at least two loops.

PR tree-optimization/47654
* graphite-blocking.c (pbb_strip_mine_time_depth): Do not return bool.
(lst_do_strip_mine_loop): Return an int.
(lst_do_strip_mine): Same.
(scop_do_strip_mine): Same.
(scop_do_block): Loop blocking should strip-mine at least two loops.
* graphite-interchange.c (lst_interchange_select_outer): Return an int.
(scop_do_interchange): Same.
* graphite-poly.h (scop_do_interchange): Update declaration.
(scop_do_strip_mine): Same.

* gcc.dg/graphite/block-pr47654.c: New.

From-SVN: r175861
gcc/ChangeLog
gcc/graphite-blocking.c
gcc/graphite-interchange.c
gcc/graphite-poly.h
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/graphite/block-pr47654.c [new file with mode: 0644]