Page MenuHomePhabricator

[MLIR] Simplex: fix a bug when rolling back a Simplex with no solutions

Authored by arjunp on Thu, Nov 25, 1:37 PM.



Previously, when adding a constraint to a Simplex that is already marked
as having no solutions (marked empty), the Simplex would be marked empty again,
and a second UnmarkEmpty entry would be pushed to the undo log. When rolling
back, Simplex should be unmarked empty only after rolling back past the
creation of the first constraint that made it empty.

Diff Detail

Event Timeline

arjunp created this revision.Thu, Nov 25, 1:37 PM
arjunp requested review of this revision.Thu, Nov 25, 1:37 PM

Note: the failing test will pass once the patch D114614 is landed.

Groverkss accepted this revision.Fri, Nov 26, 6:02 AM

LGTM. Just some minor comments.


I think this doc comment should be updated to reflect the new check.


Could you add the comment // (u - v) <= -3 just for consistency?

This revision is now accepted and ready to land.Fri, Nov 26, 6:02 AM
arjunp updated this revision to Diff 390049.Fri, Nov 26, 7:08 AM

Address Kunwar's comments.

arjunp updated this revision to Diff 390072.Fri, Nov 26, 8:14 AM

Rebase on the landed parent patch. This should fix the build.