isl_stream_read_map: accept '|' at start of constraints
authorSven Verdoolaege <skimo@kotnet.org>
Sat, 12 Feb 2011 15:55:03 +0000 (16:55 +0100)
committerSven Verdoolaege <skimo@kotnet.org>
Sat, 12 Feb 2011 17:38:15 +0000 (18:38 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_input.c

index 619ebd0..7ecaf56 100644 (file)
@@ -1542,7 +1542,8 @@ static __isl_give isl_map *read_optional_disjuncts(struct isl_stream *s,
                goto error;
        }
        map = isl_map_from_basic_map(isl_basic_map_copy(bmap));
-       if (tok->type == ':') {
+       if (tok->type == ':' ||
+           (tok->type == ISL_TOKEN_OR && !strcmp(tok->u.s, "|"))) {
                isl_token_free(tok);
                map = isl_map_intersect(map,
                            read_disjuncts(s, v, isl_basic_map_get_dim(bmap)));