projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26ac434
)
isl_map_subtract: simplify and finalize parts before checking emptiness
author
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 9 Aug 2008 11:40:24 +0000
(13:40 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Mon, 25 Aug 2008 07:24:18 +0000
(09:24 +0200)
isl_map.c
patch
|
blob
|
history
diff --git
a/isl_map.c
b/isl_map.c
index
29b74c7
..
68e8527
100644
(file)
--- a/
isl_map.c
+++ b/
isl_map.c
@@
-2619,6
+2619,8
@@
static struct isl_map *add_cut_constraint(struct isl_ctx *ctx,
isl_seq_cpy(copy->ineq[k], c, len);
isl_seq_clr(copy->ineq[k]+len, extra);
isl_inequality_negate(ctx, copy, k);
+ copy = isl_basic_map_simplify(ctx, copy);
+ copy = isl_basic_map_finalize(ctx, copy);
is_empty = isl_basic_map_is_empty(ctx, copy);
if (is_empty < 0)
goto error;