An isl_aff does not keep track of the name of its output dimension.
Even if it did, we would have to change the name of only the specified
element and not of all elements as we did before this commit.
Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
maff->space = isl_space_set_dim_name(maff->space, type, pos, s);
if (!maff->space)
return isl_multi_aff_free(maff);
+
+ if (type == isl_dim_out)
+ return maff;
for (i = 0; i < maff->n; ++i) {
maff->p[i] = isl_aff_set_dim_name(maff->p[i], type, pos, s);
if (!maff->p[i])