isl_map_simplify.c: check_for_div_constraints: also check for "better" ones
commit6c6186f6655c8d1cd1264c9762a93480244b1b88
authorSven Verdoolaege <skimo@kotnet.org>
Tue, 19 Feb 2013 14:44:19 +0000 (19 15:44 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Tue, 19 Feb 2013 19:11:16 +0000 (19 20:11 +0100)
tree308927745258208425b6cb1902ad4225e3312685
parentf6e02c70c31cb6eb509507a6016ef596a94e79d1
isl_map_simplify.c: check_for_div_constraints: also check for "better" ones

In check_for_div_constraints we check if two "opposite" constraints
can be used to define a div.  However, a given div may be definable
by multiple pairs of constraints and then we would just pick the pair
we come across.

We now also consider possible defining constraints for divs for which
we already have a definition, which makes the result less dependent
on the order of the constraints.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map_simplify.c
test_inputs/codegen/omega/floor_bound-6.c
test_inputs/codegen/omega/lefur04-0.c