Skip to content
This repository was archived by the owner on Apr 28, 2023. It is now read-only.

Commit 4bb025c

Browse files
author
Sven Verdoolaege
committed
Scop::makeContextFromInputs: fix check for fixed parameter values
Calling is_singleton() on a parametric set makes little sense, since every parametric set is a singleton.
1 parent 8da9b14 commit 4bb025c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/polyhedral/scop.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,8 @@ isl::set Scop::makeContextFromInputs(
324324
paramSet & (isl::aff_set(parametricAff) == inputs[i]->shape[j]);
325325
}
326326
}
327-
CHECK(paramSet.is_singleton()) << "could not infer the values of parameters";
327+
CHECK(paramSet.is_equal(paramSet.sample()))
328+
<< "could not infer the values of parameters";
328329
return paramSet;
329330
}
330331

0 commit comments

Comments
 (0)