projects
/
platform
/
upstream
/
isl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
476d691
)
isl_stream_read_map: accept '|' at start of constraints
author
Sven Verdoolaege
<skimo@kotnet.org>
Sat, 12 Feb 2011 15:55:03 +0000
(16:55 +0100)
committer
Sven 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
patch
|
blob
|
history
diff --git
a/isl_input.c
b/isl_input.c
index
619ebd0
..
7ecaf56
100644
(file)
--- a/
isl_input.c
+++ b/
isl_input.c
@@
-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)));