This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger] SlowMPInt: fix bug in ceilDiv, floorDiv where widths weren't harmonized
ClosedPublic

Authored by arjunp on Jul 14 2022, 4:16 PM.

Details

Summary

This also adds tests for abs, ceilDiv, floorDiv, mod, gcd and lcm.

Diff Detail

Event Timeline

arjunp created this revision.Jul 14 2022, 4:16 PM
arjunp requested review of this revision.Jul 14 2022, 4:16 PM
Groverkss added inline comments.Jul 15 2022, 8:53 AM
mlir/unittests/Analysis/Presburger/MPIntTest.cpp
167–172

Could you also add tests when both arguments are over 64bit int?

arjunp updated this revision to Diff 445018.Jul 15 2022, 9:24 AM

Address kunwar's comment

This revision is now accepted and ready to land.Jul 18 2022, 3:40 AM