isl_map_coalesce: only coalesce pairs of basic maps with the same divs
Most of the heuristics won't be able to find any coalescing opportunities
on basic maps with different divs, so it's not worth it to even try.
A notable exception is the subset test, which is now handled separately.
Since we only perform the tests after checking that the divs are the same,
there is no point in aligning the divs over all basic maps. This could
be a very expensive operation, especially if some divs are unknown as it
would then compute explicit representations for all divs. This could have
the counter-intuitive effect that the ouptut of isl_map_coalesce would have
_more_ basic maps (because of the splits introduced during the computation
of explicit representations) than the input.
Instead, we know simply sort the known divs.
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>