summaryrefslogtreecommitdiffstats
path: root/polly/lib/External/isl/isl_multi_gist.c
diff options
context:
space:
mode:
authorTobias Grosser <tobias@grosser.es>2015-02-16 19:33:40 +0000
committerTobias Grosser <tobias@grosser.es>2015-02-16 19:33:40 +0000
commit1fa7b972c02efa8e80706995f1c6326e68205c47 (patch)
treef14008a5a312836fae4811487a69b9458e6afbd1 /polly/lib/External/isl/isl_multi_gist.c
parent97a59fb464c7330037ce487f8fb6a079c7a52200 (diff)
downloadbcm5719-llvm-1fa7b972c02efa8e80706995f1c6326e68205c47.tar.gz
bcm5719-llvm-1fa7b972c02efa8e80706995f1c6326e68205c47.zip
Update to isl 99d53692ba
This commit imports the latest isl version into lib/External/isl. The changes relavant for Polly are: 1) Schedule trees [1] have been introduced as a more structured way to describe schedules. Polly does not yet use them, but we may switch to them in the near future. 2) Another set of coalescing changes [2] simplifies some data dependences and removes a couple of code generation artifacts. We now understand that the following sets can be merged: { Stmt_S1[i0, i1] -> Stmt_S2[i0 + i1] : i0 >= 0 and i1 <= 1023 - i0 and i1 >= 1 Stmt_S1[i0, 0] -> Stmt_S2[i0] : i0 <= 1023 and i0 >= 1} into: { Stmt_S1[i0, i1] -> Stmt_S2[i0 + i1] : i1 <= 1023 - i0 and i1 >= 0 and i1 >= 1 - i0 and i0 >= 0 } Changes of this kind reduce unnecessary specialization during code generation. - for (int c3 = 0; c3 <= 1023; c3 += 1) { - if (c3 % 2 == 0) { - Stmt_for_body3(c1, c3); - } else - Stmt_for_body3(c1, c3); - } + for (int c3 = 0; c3 <= 1023; c3 += 1) + Stmt_for_body3(c1, c3); [1] http://impact.gforge.inria.fr/impact2014/papers/impact2014-verdoolaege.pdf [2] http://impact.gforge.inria.fr/impact2015/papers/impact2015-verdoolaege.pdf llvm-svn: 229423
Diffstat (limited to 'polly/lib/External/isl/isl_multi_gist.c')
-rw-r--r--polly/lib/External/isl/isl_multi_gist.c29
1 files changed, 29 insertions, 0 deletions
diff --git a/polly/lib/External/isl/isl_multi_gist.c b/polly/lib/External/isl/isl_multi_gist.c
new file mode 100644
index 00000000000..d43525f8720
--- /dev/null
+++ b/polly/lib/External/isl/isl_multi_gist.c
@@ -0,0 +1,29 @@
+/*
+ * Copyright 2011 Sven Verdoolaege
+ * Copyright 2012-2013 Ecole Normale Superieure
+ *
+ * Use of this software is governed by the MIT license
+ *
+ * Written by Sven Verdoolaege,
+ * Ecole Normale Superieure, 45 rue d’Ulm, 75230 Paris, France
+ */
+
+#include <isl_multi_macro.h>
+
+/* Compute the gist of "multi" with respect to the domain constraints
+ * of "context".
+ */
+__isl_give MULTI(BASE) *FN(MULTI(BASE),gist)(__isl_take MULTI(BASE) *multi,
+ __isl_take DOM *context)
+{
+ return FN(FN(MULTI(BASE),apply),DOMBASE)(multi, context, &FN(EL,gist));
+}
+
+/* Compute the gist of "multi" with respect to the parameter constraints
+ * of "context".
+ */
+__isl_give MULTI(BASE) *FN(MULTI(BASE),gist_params)(
+ __isl_take MULTI(BASE) *multi, __isl_take isl_set *context)
+{
+ return FN(MULTI(BASE),apply_set)(multi, context, &FN(EL,gist_params));
+}
OpenPOWER on IntegriCloud