diff --git a/mlir/lib/Analysis/Presburger/Matrix.cpp b/mlir/lib/Analysis/Presburger/Matrix.cpp --- a/mlir/lib/Analysis/Presburger/Matrix.cpp +++ b/mlir/lib/Analysis/Presburger/Matrix.cpp @@ -367,9 +367,11 @@ return false; if (nColumns > nReservedColumns) return false; +#ifdef EXPENSIVE_CHECKS for (unsigned r = 0; r < nRows; ++r) for (unsigned c = nColumns; c < nReservedColumns; ++c) if (data[r * nReservedColumns + c] != 0) return false; +#endif return true; }