Skip to content

Commit 7f9e36b

Browse files
committed
[MLIR] PresburgerSet emptiness check: remove assertions that there are no symbols
Symbols are now supported in the integer emptiness check. Remove some outdated assertions checking that there are no symbols. Reviewed By: ftynse Differential Revision: https://reviews.llvm.org/D100327
1 parent 7714b40 commit 7f9e36b

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

mlir/lib/Analysis/PresburgerSet.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -297,7 +297,6 @@ bool PresburgerSet::isEqual(const PresburgerSet &set) const {
297297
/// Return true if all the sets in the union are known to be integer empty,
298298
/// false otherwise.
299299
bool PresburgerSet::isIntegerEmpty() const {
300-
assert(nSym == 0 && "isIntegerEmpty is intended for non-symbolic sets");
301300
// The set is empty iff all of the disjuncts are empty.
302301
for (const FlatAffineConstraints &fac : flatAffineConstraints) {
303302
if (!fac.isIntegerEmpty())
@@ -307,7 +306,6 @@ bool PresburgerSet::isIntegerEmpty() const {
307306
}
308307

309308
bool PresburgerSet::findIntegerSample(SmallVectorImpl<int64_t> &sample) {
310-
assert(nSym == 0 && "findIntegerSample is intended for non-symbolic sets");
311309
// A sample exists iff any of the disjuncts contains a sample.
312310
for (const FlatAffineConstraints &fac : flatAffineConstraints) {
313311
if (Optional<SmallVector<int64_t, 8>> opt = fac.findIntegerSample()) {

0 commit comments

Comments
 (0)