FlattenAlgo: Ensure we _really_ obtain a param space

This resolves "isl_space.c:1775: not a parameter space" errors I have seen
on two systems.

llvm-svn: 281052
This commit is contained in:
Tobias Grosser 2016-09-09 16:11:26 +00:00
parent 8b1460250e
commit 5aea5653b3

View File

@ -227,7 +227,8 @@ IslPtr<isl_union_map> tryFlattenSequence(IslPtr<isl_union_map> Schedule) {
auto ScatterSet = auto ScatterSet =
give(isl_set_from_union_set(isl_union_map_range(Schedule.copy()))); give(isl_set_from_union_set(isl_union_map_range(Schedule.copy())));
auto ParamSpace = give(isl_union_map_get_space(Schedule.keep())); auto ParamSpace =
give(isl_space_params(isl_union_map_get_space(Schedule.keep())));
auto Dims = isl_set_dim(ScatterSet.keep(), isl_dim_set); auto Dims = isl_set_dim(ScatterSet.keep(), isl_dim_set);
assert(Dims >= 2); assert(Dims >= 2);