isl_basic_map_sort_constraints: change comparison routine
commit91c6aa5e30ab344c3f3b6d07af44e17a88d2b1b6
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 18 Feb 2011 12:09:02 +0000 (18 13:09 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sun, 20 Feb 2011 09:03:57 +0000 (20 10:03 +0100)
tree7f44e6f4ab2ee934f87094e619a21cb843271118
parent483011dd69205bffb75b07ec26107ed947b15651
isl_basic_map_sort_constraints: change comparison routine

In particular, before we would simply sort the constraints lexicographically.
Now, we first check for the last non-zero coefficients and only when those
positions are the same do we continue with the lexicographical order.
The new ordering is the same as that used to order divs in isl_polynomial.c

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