mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-27 18:28:14 +00:00
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:
parent
8b1460250e
commit
5aea5653b3
@ -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);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user