[Mlir-commits] [mlir] [MLIR][Presburger] Fix Gaussian elimination (PR #164437)
Arjun P
llvmlistbot at llvm.org
Mon Dec 1 08:37:29 PST 2025
================
@@ -1112,15 +1112,28 @@ unsigned IntegerRelation::gaussianEliminateVars(unsigned posStart,
return posLimit - posStart;
}
+static std::optional<unsigned>
+findEqualityWithNonZeroAfterRow(IntegerRelation &rel, unsigned fromRow,
+ unsigned colIdx) {
+ assert(fromRow < rel.getNumVars() && colIdx < rel.getNumCols() &&
+ "position out of bounds");
+ for (unsigned rowIdx = fromRow; rowIdx < rel.getNumEqualities(); ++rowIdx) {
----------------
Superty wrote:
nit: you can drop the loop curly braces
https://github.com/llvm/llvm-project/pull/164437
More information about the Mlir-commits
mailing list