This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger] Refactor subtraction in preparation for making it iterative
ClosedPublic

Authored by arjunp on Apr 5 2022, 1:39 PM.

Details

Summary

Refactor the operation of subtraction by

  • removing the usage of SimplexRollbackScopeExit since this can't be used in the iterative version
  • reducing the number of stack variables to make the iterative version easier to follow

Diff Detail

Event Timeline

arjunp created this revision.Apr 5 2022, 1:39 PM
Herald added a project: Restricted Project. · View Herald TranscriptApr 5 2022, 1:39 PM
arjunp requested review of this revision.Apr 5 2022, 1:39 PM
Groverkss added inline comments.Apr 6 2022, 3:45 AM
mlir/lib/Analysis/Presburger/PresburgerRelation.cpp
286–288

Could you add some inline comments about what this does?

arjunp updated this revision to Diff 420834.Apr 6 2022, 7:01 AM

Address kunwar's comment

This revision is now accepted and ready to land.Apr 6 2022, 7:32 AM