isl_pw_*_set_dim_id: only modify space once
commitcf554f02f0f993f8e50d4a2f081530c6dbec9519
authorSven Verdoolaege <sven@cerebras.net>
Tue, 22 Jun 2021 13:44:54 +0000 (22 15:44 +0200)
committerSven Verdoolaege <sven@cerebras.net>
Sun, 1 Aug 2021 12:20:55 +0000 (1 14:20 +0200)
tree3bec1353d8e5ec0bf29d87d5352fd326ad039385
parent420170af9c5f1e4b77503b02bb7c10ec123a67e7
isl_pw_*_set_dim_id: only modify space once

In particular, isl_pw_*_reset_space already modifies
the space of the piecewise object itself (together
with the spaces of the pieces), so there is no need
for isl_pw_*_set_dim_id to modify the space prior
to the call to isl_pw_*_reset_space.
Simply pass in the modified space.

Signed-off-by: Sven Verdoolaege <sven@cerebras.net>
isl_pw_templ.c