This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Support checking if two FlatAffineConstraints are equal
ClosedPublic

Authored by arjunp on Jan 18 2021, 7:10 AM.

Details

Summary

This patch adds support for checking if two PresburgerSets are equal. In particular, one can check if two FlatAffineConstraints are equal by constructing PrebsurgerSets from them and comparing these.

Diff Detail

Event Timeline

arjunp created this revision.Jan 18 2021, 7:10 AM
arjunp requested review of this revision.Jan 18 2021, 7:10 AM
arjunp edited the summary of this revision. (Show Details)Jan 18 2021, 7:11 AM
ftynse accepted this revision.Jan 18 2021, 7:24 AM
ftynse added a subscriber: ftynse.
ftynse added inline comments.
mlir/lib/Analysis/PresburgerSet.cpp
297–299

return setMinusThis.isInegerEmpty();

This revision is now accepted and ready to land.Jan 18 2021, 7:24 AM
arjunp updated this revision to Diff 317354.Jan 18 2021, 7:31 AM
arjunp marked an inline comment as done.

Addressed Alex's comment.