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:
13a2caa
)
isl_multi_aff_drop_dims: handle removal of output dimensions
author
Sven Verdoolaege
<skimo@kotnet.org>
Thu, 12 Jan 2012 14:49:28 +0000
(15:49 +0100)
committer
Sven Verdoolaege
<skimo@kotnet.org>
Fri, 13 Jan 2012 10:41:13 +0000
(11:41 +0100)
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_aff.c
patch
|
blob
|
history
diff --git
a/isl_aff.c
b/isl_aff.c
index
c99a15d
..
d6241aa
100644
(file)
--- a/
isl_aff.c
+++ b/
isl_aff.c
@@
-2147,6
+2147,16
@@
__isl_give isl_multi_aff *isl_multi_aff_drop_dims(__isl_take isl_multi_aff *maff
maff->space = isl_space_drop_dims(maff->space, type, first, n);
if (!maff->space)
return isl_multi_aff_free(maff);
+
+ if (type == isl_dim_out) {
+ for (i = 0; i < n; ++i)
+ isl_aff_free(maff->p[first + i]);
+ for (i = first; i + n < maff->n; ++i)
+ maff->p[i] = maff->p[i + n];
+ maff->n -= n;
+ return maff;
+ }
+
for (i = 0; i < maff->n; ++i) {
maff->p[i] = isl_aff_drop_dims(maff->p[i], type, first, n);
if (!maff->p[i])