diff options
| author | Tobias Grosser <tobias@grosser.es> | 2015-11-21 20:48:39 +0000 |
|---|---|---|
| committer | Tobias Grosser <tobias@grosser.es> | 2015-11-21 20:48:39 +0000 |
| commit | fb3fb0a309807c00de47a40e3aa91768bbdd0082 (patch) | |
| tree | 3a0bf75134df1df9f31af53b4156c946341e1f57 /polly/lib/External/isl/isl_test.c | |
| parent | b46557292c140bc8c65ec47048b6a4de726e6d64 (diff) | |
| download | bcm5719-llvm-fb3fb0a309807c00de47a40e3aa91768bbdd0082.tar.gz bcm5719-llvm-fb3fb0a309807c00de47a40e3aa91768bbdd0082.zip | |
isl: Update to isl-0.15-136-g4d5654a
The most interesting change for Polly in this isl update is 4d5654af which
in certain cases can speed up the construction of run-time checks from an isl
set consisting of several disjuncts significantly.
llvm-svn: 253794
Diffstat (limited to 'polly/lib/External/isl/isl_test.c')
| -rw-r--r-- | polly/lib/External/isl/isl_test.c | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/polly/lib/External/isl/isl_test.c b/polly/lib/External/isl/isl_test.c index 23a205e4704..26f7e0293e3 100644 --- a/polly/lib/External/isl/isl_test.c +++ b/polly/lib/External/isl/isl_test.c @@ -2858,6 +2858,31 @@ static int test_subtract(isl_ctx *ctx) return 0; } +/* Check that intersecting the empty basic set with another basic set + * does not increase the number of constraints. In particular, + * the empty basic set should maintain its canonical representation. + */ +static int test_intersect(isl_ctx *ctx) +{ + int n1, n2; + isl_basic_set *bset1, *bset2; + + bset1 = isl_basic_set_read_from_str(ctx, "{ [a,b,c] : 1 = 0 }"); + bset2 = isl_basic_set_read_from_str(ctx, "{ [1,2,3] }"); + n1 = isl_basic_set_n_constraint(bset1); + bset1 = isl_basic_set_intersect(bset1, bset2); + n2 = isl_basic_set_n_constraint(bset1); + isl_basic_set_free(bset1); + if (!bset1) + return -1; + if (n1 != n2) + isl_die(ctx, isl_error_unknown, + "number of constraints of empty set changed", + return -1); + + return 0; +} + int test_factorize(isl_ctx *ctx) { const char *str; @@ -6105,6 +6130,7 @@ struct { { "factorize", &test_factorize }, { "subset", &test_subset }, { "subtract", &test_subtract }, + { "intersect", &test_intersect }, { "lexmin", &test_lexmin }, { "min", &test_min }, { "gist", &test_gist }, |

