isl_basic_map_zip: always call isl_basic_map_cow
commit5cec5009084391edaa2ce790959414f5a2a54696
authorSven Verdoolaege <skimo@kotnet.org>
Fri, 18 May 2012 09:25:58 +0000 (18 11:25 +0200)
committerSven Verdoolaege <skimo@kotnet.org>
Fri, 18 May 2012 09:25:58 +0000 (18 11:25 +0200)
treebcc9ace45a8af865be9df6f8f1ead51034cb158b
parent695637f732ded0e12820db997e5b7b3a046754cc
isl_basic_map_zip: always call isl_basic_map_cow

We were relying on isl_basic_map_swap_vars calling isl_basic_map_cow for us,
but if no actual swapping needs to be performed (because the number
of variables to swap is zero), then isl_basic_map_swap_vars will not call
isl_basic_map_cow.

Signed-off-by: Sven Verdoolaege <skimo@kotnet.org>
isl_map.c