This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger] fix bug where Simplex::addZeroRow was not undoable
ClosedPublic

Authored by arjunp on Mar 21 2022, 11:07 AM.

Details

Summary

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.

Diff Detail

Event Timeline

arjunp created this revision.Mar 21 2022, 11:07 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 21 2022, 11:07 AM
arjunp requested review of this revision.Mar 21 2022, 11:07 AM
arjunp edited the summary of this revision. (Show Details)Mar 21 2022, 11:18 AM
This revision is now accepted and ready to land.Mar 21 2022, 4:20 PM