diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-07-21 18:33:35 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 2015-07-21 12:33:35 -0600 |
commit | 324000329be228765b56c2b11d24256a8a30000e (patch) | |
tree | 69f623cd993a4e5de320d692854414be761b6997 /gcc/graphite-optimize-isl.c | |
parent | 1f82f1245db9096c1fe53acc763fdfacdba2a440 (diff) | |
download | gcc-324000329be228765b56c2b11d24256a8a30000e.zip gcc-324000329be228765b56c2b11d24256a8a30000e.tar.gz gcc-324000329be228765b56c2b11d24256a8a30000e.tar.bz2 |
configure.ac: Add check for new options in isl-0.15.
* configure.ac: Add check for new options in isl-0.15.
* config.in, configure: Rebuilt.
* graphite-blocking.c: Include <isl/constraint.h>
* graphite-interchange.c, graphite-poly.c: Likewise.
* graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
* graphite.c: Likewise.
* graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
<isl/union_set.h>.
* graphite-dependences.c: Include <isl/constraint.h>.
(max_number_of_out_dimensions): Returns isl_stat.
(extend_schedule_1): Likewise
(extend_schedule): Corresponding changes.
* graphite-optimize-isl.c: Include <isl/constraint.h> and
<isl/union_set.h>.
(getSingleMap): Change return type of isl_stat.
(optimize_isl): Conditionally use
isl_options_set_schedule_serialize_sccs.
* graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
Co-Authored-By: Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
From-SVN: r226050
Diffstat (limited to 'gcc/graphite-optimize-isl.c')
-rw-r--r-- | gcc/graphite-optimize-isl.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/gcc/graphite-optimize-isl.c b/gcc/graphite-optimize-isl.c index 87536b2..1b57c6c 100644 --- a/gcc/graphite-optimize-isl.c +++ b/gcc/graphite-optimize-isl.c @@ -24,7 +24,9 @@ along with GCC; see the file COPYING3. If not see /* Workaround for GMP 5.1.3 bug, see PR56019. */ #include <stddef.h> +#include <isl/constraint.h> #include <isl/set.h> +#include <isl/union_set.h> #include <isl/map.h> #include <isl/union_map.h> #include <isl/schedule.h> @@ -507,13 +509,13 @@ getScheduleMap (isl_schedule *Schedule, isl_union_map **map_sepcl) return ScheduleMap; } -static int +static isl_stat getSingleMap (__isl_take isl_map *map, void *user) { isl_map **singleMap = (isl_map **) user; *singleMap = map; - return 0; + return isl_stat_ok; } static void @@ -585,7 +587,11 @@ optimize_isl (scop_p scop) isl_options_set_schedule_max_constant_term (scop->ctx, CONSTANT_BOUND); isl_options_set_schedule_maximize_band_depth (scop->ctx, 1); +#ifdef HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS + isl_options_set_schedule_serialize_sccs (scop->ctx, 1); +#else isl_options_set_schedule_fuse (scop->ctx, ISL_SCHEDULE_FUSE_MIN); +#endif isl_options_set_on_error (scop->ctx, ISL_ON_ERROR_CONTINUE); #ifdef HAVE_ISL_SCHED_CONSTRAINTS_COMPUTE_SCHEDULE |