X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=isl_tab_pip.c;h=22ab3dd2d4d886a883e3d6934447cb8a727812f3;hb=d85e17126dcf9e1353a70406fbb66979674e04cd;hp=d09330fa6a12ced1398fc43e8081de07b56f12fc;hpb=3a37260f65351a47d453f33e057c8f1e9ff0fba8;p=platform%2Fupstream%2Fisl.git diff --git a/isl_tab_pip.c b/isl_tab_pip.c index d09330f..22ab3dd 100644 --- a/isl_tab_pip.c +++ b/isl_tab_pip.c @@ -10,6 +10,7 @@ * ZAC des vignes, 4 rue Jacques Monod, 91893 Orsay, France */ +#include #include "isl_map_private.h" #include #include "isl_tab.h" @@ -39,7 +40,7 @@ * then the initial sample value may be chosen equal to zero. * However, we will not make this assumption. Instead, we apply * the "big parameter" trick. Any variable x is then not directly - * used in the tableau, but instead it its represented by another + * used in the tableau, but instead it is represented by another * variable x' = M + x, where M is an arbitrarily large (positive) * value. x' is therefore always non-negative, whatever the value of x. * Taking as initial sample value x' = 0 corresponds to x = -M, @@ -4431,6 +4432,9 @@ struct isl_map *isl_tab_basic_map_partial_lexopt( isl_assert(bmap->ctx, isl_basic_map_compatible_domain(bmap, dom), goto error); + if (isl_basic_set_dim(dom, isl_dim_all) == 0) + return basic_map_partial_lexopt(bmap, dom, empty, max); + bmap = isl_basic_map_intersect_domain(bmap, isl_basic_set_copy(dom)); bmap = isl_basic_map_detect_equalities(bmap); bmap = isl_basic_map_remove_redundancies(bmap);