[Mlir-commits] [mlir] 8eebb47 - [MLIR][Presburger] Update equality and subset checks asserts in IntegerRelation
llvmlistbot at llvm.org
llvmlistbot at llvm.org
Sat May 21 12:57:08 PDT 2022
Author: Groverkss
Date: 2022-05-22T01:26:41+05:30
New Revision: 8eebb47f9706b2016f2f6b772955066bf07249d7
URL: https://github.com/llvm/llvm-project/commit/8eebb47f9706b2016f2f6b772955066bf07249d7
DIFF: https://github.com/llvm/llvm-project/commit/8eebb47f9706b2016f2f6b772955066bf07249d7.diff
LOG: [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.
Added:
Modified:
mlir/lib/Analysis/Presburger/IntegerRelation.cpp
Removed:
################################################################################
diff --git a/mlir/lib/Analysis/Presburger/IntegerRelation.cpp b/mlir/lib/Analysis/Presburger/IntegerRelation.cpp
index 14f05e0513f82..73ae0ebd9873e 100644
--- a/mlir/lib/Analysis/Presburger/IntegerRelation.cpp
+++ b/mlir/lib/Analysis/Presburger/IntegerRelation.cpp
@@ -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));
}
More information about the Mlir-commits
mailing list