isl_basic_set_expand_divs: only add div constraints for known divs
commit44a8016cdb45e0b03eca6d00192351aff24fba65
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 3 Jun 2016 19:45:06 +0000 (3 21:45 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 3 Jun 2016 21:45:00 +0000 (3 23:45 +0200)
tree3e33684ed0994f51af02c1555bc3389e57d90a79
parente6cd1f7afda303ed97a61dab606d1cc6c6be8f94
isl_basic_set_expand_divs: only add div constraints for known divs

When called from isl_basic_set_opt_lp_val_aligned or isl_basic_set_opt,
the existentially quantified variables that are introduced, always
have an explicit representation, but this may not necessarily be
the case when called from contains_with_expanded_divs.
Adding div constraints based on an unknown div constructs
constraints from stale data, which may therefore not make any sense.
In practice, this does not cause any major damage because
the two constraints that end up being added conflict with each other.
They therefore cannot both be valid for the other disjunct and
therefore result at most in missed coalescing opportunities.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map.c
isl_test.c