From c1f80eef74964f2b2fca8c9e76c54d1fd08e4eb6 Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Wed, 27 Sep 2017 12:21:40 +0000 Subject: [PATCH] graphite-optimize-isl.c (get_schedule_for_node_st): Allow --param loop-block-tile-size=0 to disable tiling. 2017-09-27 Richard Biener * graphite-optimize-isl.c (get_schedule_for_node_st): Allow --param loop-block-tile-size=0 to disable tiling. From-SVN: r253227 --- gcc/ChangeLog | 5 +++++ gcc/graphite-optimize-isl.c | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 8d2edda74ee..6e7b5e3a8c0 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2017-09-27 Richard Biener + + * graphite-optimize-isl.c (get_schedule_for_node_st): Allow + --param loop-block-tile-size=0 to disable tiling. + 2017-09-27 Richard Biener * doc/invoke.texi (graphite-max-bbs-per-function): Remove. diff --git a/gcc/graphite-optimize-isl.c b/gcc/graphite-optimize-isl.c index 2f3c4fc533f..e1b96064610 100644 --- a/gcc/graphite-optimize-isl.c +++ b/gcc/graphite-optimize-isl.c @@ -64,7 +64,10 @@ get_schedule_for_node_st (__isl_take isl_schedule_node *node, void *user) if (type != isl_schedule_node_leaf) return node; - if (dims <= 1 || !isl_schedule_node_band_get_permutable (node)) + long tile_size = PARAM_VALUE (PARAM_LOOP_BLOCK_TILE_SIZE); + if (dims <= 1 + || tile_size == 0 + || !isl_schedule_node_band_get_permutable (node)) { if (dump_file && dump_flags) fprintf (dump_file, "not tiled\n"); @@ -74,7 +77,6 @@ get_schedule_for_node_st (__isl_take isl_schedule_node *node, void *user) /* Tile loops. */ space = isl_schedule_node_band_get_space (node); isl_multi_val *sizes = isl_multi_val_zero (space); - long tile_size = PARAM_VALUE (PARAM_LOOP_BLOCK_TILE_SIZE); isl_ctx *ctx = isl_schedule_node_get_ctx (node); for (unsigned i = 0; i < dims; i++) -- 2.30.2