isl_map_convex_hull: detect equalities before checking number of basic maps
commit18916c09b56041cf77bffdbcb47ee2cd23042d92
authorSven Verdoolaege <skimo@kotnet.org>
Mon, 13 Oct 2014 08:16:55 +0000 (13 10:16 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Mon, 13 Oct 2014 08:22:19 +0000 (13 10:22 +0200)
treec74818d8233486b589755d721bfdc2d8ddd7cf1c
parent24b2e7841aef872a4b1984852eac03518c03d7ec
isl_map_convex_hull: detect equalities before checking number of basic maps

While detecting equalities, we may discover that some (or even all)
basic maps are empty, so we cannot assume that the number of basic
maps remains the same.  Since the body of isl_map_convex_hull assumes
that there is at least one basic map, we need to detect equalities
before checking the number of basic maps.

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