specify more isl codegen options
authorAditya Kumar <aditya.k7@samsung.com>
Wed, 9 Dec 2015 18:40:15 +0000 (18:40 +0000)
committerSebastian Pop <spop@gcc.gnu.org>
Wed, 9 Dec 2015 18:40:15 +0000 (18:40 +0000)
* graphite-optimize-isl.c: Include isl/ast_build.h
(optimize_isl): Set several isl_options_set_* options.

Co-Authored-By: Sebastian Pop <s.pop@samsung.com>
From-SVN: r231467

gcc/ChangeLog
gcc/graphite-optimize-isl.c

index 069e69596e8294e7d868b22990f426e46b15c898..ee48602b96578155b6619a24d38c3782974adf17 100644 (file)
@@ -1,3 +1,9 @@
+2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
+           Sebastian Pop  <s.pop@samsung.com>
+
+       * graphite-optimize-isl.c: Include isl/ast_build.h
+       (optimize_isl): Set several isl_options_set_* options.
+
 2015-12-09  Aditya Kumar  <aditya.k7@samsung.com>
            Sebastian Pop  <s.pop@samsung.com>
 
index f90fcfd936ab2bb580947d000381dd98823713b0..50f2b3c29b83630d30a3a0cf84290255ddeb839a 100644 (file)
@@ -50,6 +50,7 @@ along with GCC; see the file COPYING3.  If not see
 #include <isl/ctx.h>
 #ifdef HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS
 #include <isl/schedule_node.h>
+#include <isl/ast_build.h>
 #endif
 
 #include "graphite.h"
@@ -405,7 +406,14 @@ optimize_isl (scop_p scop)
   isl_options_set_schedule_maximize_band_depth (scop->isl_context, 1);
 #ifdef HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS
   /* ISL-0.15 or later.  */
+  isl_options_set_schedule_serialize_sccs (scop->isl_context, 0);
   isl_options_set_schedule_maximize_band_depth (scop->isl_context, 1);
+  isl_options_set_schedule_max_constant_term (scop->isl_context, 20);
+  isl_options_set_schedule_max_coefficient (scop->isl_context, 20);
+  isl_options_set_tile_scale_tile_loops (scop->isl_context, 0);
+  isl_options_set_coalesce_bounded_wrapping (scop->isl_context, 1);
+  isl_options_set_ast_build_exploit_nested_bounds (scop->isl_context, 1);
+  isl_options_set_ast_build_atomic_upper_bound (scop->isl_context, 1);
 #else
   isl_options_set_schedule_fuse (scop->isl_context, ISL_SCHEDULE_FUSE_MIN);
 #endif