diff options
author | Sebastian Pop <sebastian.pop@amd.com> | 2011-07-05 14:50:34 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2011-07-05 14:50:34 +0000 |
commit | cec11ec4142e5d300aa36cbee1b54adefdee7711 (patch) | |
tree | bb332b8bbbc0bb93e01d2b53950af05852a521d7 /gcc/graphite-poly.h | |
parent | 9b0d314a45803f7663e37f669488c695bcf253fa (diff) | |
download | gcc-cec11ec4142e5d300aa36cbee1b54adefdee7711.tar.gz |
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
Diffstat (limited to 'gcc/graphite-poly.h')
-rw-r--r-- | gcc/graphite-poly.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gcc/graphite-poly.h b/gcc/graphite-poly.h index 3bf87b088c9..417e99eef25 100644 --- a/gcc/graphite-poly.h +++ b/gcc/graphite-poly.h @@ -410,8 +410,8 @@ extern void print_iteration_domain (FILE *, poly_bb_p, int); extern void print_iteration_domains (FILE *, scop_p, int); extern void debug_iteration_domain (poly_bb_p, int); extern void debug_iteration_domains (scop_p, int); -extern bool scop_do_interchange (scop_p); -extern bool scop_do_strip_mine (scop_p, int); +extern int scop_do_interchange (scop_p); +extern int scop_do_strip_mine (scop_p, int); extern bool scop_do_block (scop_p); extern bool flatten_all_loops (scop_p); extern void pbb_number_of_iterations_at_time (poly_bb_p, graphite_dim_t, mpz_t); |