forked from OSchip/llvm-project
[MLIR][Presburger] Update equality and subset checks asserts in IntegerRelation
This patch updates asserts in IntegerRelation::isEqual and IntegerRelation::isCompatible to allow these functions when number of local identifiers are different. This change is done to reflect the algorithmic changes done before this patch.
This commit is contained in:
parent
df46fb4055
commit
8eebb47f97
|
@ -61,12 +61,12 @@ IntegerRelation IntegerRelation::intersect(IntegerRelation other) const {
|
|||
}
|
||||
|
||||
bool IntegerRelation::isEqual(const IntegerRelation &other) const {
|
||||
assert(space.isEqual(other.getSpace()) && "Spaces must be equal.");
|
||||
assert(space.isCompatible(other.getSpace()) && "Spaces must be compatible.");
|
||||
return PresburgerRelation(*this).isEqual(PresburgerRelation(other));
|
||||
}
|
||||
|
||||
bool IntegerRelation::isSubsetOf(const IntegerRelation &other) const {
|
||||
assert(space.isEqual(other.getSpace()) && "Spaces must be equal.");
|
||||
assert(space.isCompatible(other.getSpace()) && "Spaces must be compatible.");
|
||||
return PresburgerRelation(*this).isSubsetOf(PresburgerRelation(other));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue