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:
2143be6
)
isl_dim_flatten: remove space names when internal structure changes
author
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 17 Oct 2010 09:05:28 +0000
(11:05 +0200)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Sun, 17 Oct 2010 09:06:55 +0000
(11:06 +0200)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_dim.c
patch
|
blob
|
history
diff --git
a/isl_dim.c
b/isl_dim.c
index
a04fd97
..
415b659
100644
(file)
--- a/
isl_dim.c
+++ b/
isl_dim.c
@@
-1095,10
+1095,10
@@
__isl_give isl_dim *isl_dim_flatten(__isl_take isl_dim *dim)
if (!dim->nested[0] && !dim->nested[1])
return dim;
- i
sl_dim_free(dim->nested[0]);
-
dim->nested[0] = NULL
;
- i
sl_dim_free(dim->nested[1]);
-
dim->nested[1] = NULL
;
+ i
f (dim->nested[0])
+
dim = isl_dim_reset(dim, isl_dim_in)
;
+ i
f (dim && dim->nested[1])
+
dim = isl_dim_reset(dim, isl_dim_out)
;
return dim;
}