Update ax_compiler_vendor.m4
[platform/upstream/isl.git] / isl_local_space.c
index a74ef13..3fd5ad8 100644 (file)
@@ -77,8 +77,6 @@ __isl_give isl_local_space *isl_local_space_copy(__isl_keep isl_local_space *ls)
 
 __isl_give isl_local_space *isl_local_space_dup(__isl_keep isl_local_space *ls)
 {
-       isl_local_space *dup;
-
        if (!ls)
                return NULL;
 
@@ -307,3 +305,17 @@ __isl_give isl_mat *isl_merge_divs(__isl_keep isl_mat *div1,
 
        return div;
 }
+
+int isl_local_space_divs_known(__isl_keep isl_local_space *ls)
+{
+       int i;
+
+       if (!ls)
+               return -1;
+
+       for (i = 0; i < ls->div->n_row; ++i)
+               if (isl_int_is_zero(ls->div->row[i][0]))
+                       return 0;
+
+       return 1;
+}