[MLIR][Presburger] fix bug where Simplex::addZeroRow was not undoable
Previously, an UndoLogEntry was added by addRow but not by addZeroRow. So calling directly into addZeroRow, as LexSimplex::addCut does, was not an undoable operation. In the current usage of addCut this could never lead to an incorrect result, and addZeroRow is protected, so it is not currently possible to add a regression test for this. This bug needs to be fixed for the symbolic integer lexmin algorithm. Reviewed By: Groverkss Differential Revision: https://reviews.llvm.org/D122162
Loading
Please sign in to comment