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
30 lines
813 B
C
30 lines
813 B
C
/*
|
||
* 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>
|
||
|
||
/* Intersect the domain of "multi" with "domain".
|
||
*/
|
||
__isl_give MULTI(BASE) *FN(MULTI(BASE),intersect_domain)(
|
||
__isl_take MULTI(BASE) *multi, __isl_take DOM *domain)
|
||
{
|
||
return FN(FN(MULTI(BASE),apply),DOMBASE)(multi, domain,
|
||
&FN(EL,intersect_domain));
|
||
}
|
||
|
||
/* Intersect the parameter domain of "multi" with "domain".
|
||
*/
|
||
__isl_give MULTI(BASE) *FN(MULTI(BASE),intersect_params)(
|
||
__isl_take MULTI(BASE) *multi, __isl_take isl_set *domain)
|
||
{
|
||
return FN(MULTI(BASE),apply_set)(multi, domain,
|
||
&FN(EL,intersect_params));
|
||
}
|