This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger] subtract: fix support for divs defined by equalities
ClosedPublic

Authored by arjunp on Jun 28 2022, 9:10 AM.

Details

Summary

Also added test cases to test this. Both IntegerRelation::addLocalFloorDiv and the fixed implementation of subtraction need to compute division inequalities from dividend and divisor, so this also adds helper util functions to avoid duplicating this logic.

Diff Detail

Event Timeline

arjunp created this revision.Jun 28 2022, 9:10 AM
arjunp requested review of this revision.Jun 28 2022, 9:10 AM
This revision is now accepted and ready to land.Jun 28 2022, 10:22 AM
arjunp edited the summary of this revision. (Show Details)Jun 28 2022, 11:54 AM