This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger] LexSimplex: support is{Redundant,Separate}Inequality
ClosedPublic

Authored by arjunp on Apr 1 2022, 10:47 AM.

Details

Summary

Add integer-exact checks for inequalities being separate and redundant in LexSimplex.

Diff Detail

Event Timeline

arjunp created this revision.Apr 1 2022, 10:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 1 2022, 10:47 AM
arjunp requested review of this revision.Apr 1 2022, 10:47 AM
Groverkss added inline comments.Apr 2 2022, 1:37 AM
mlir/include/mlir/Analysis/Presburger/Simplex.h
492–493

Would it make more sense to have something like:

isIneqType(IneqType type, ArrayRef<int64_t> coeffs);

instead?

arjunp added inline comments.Apr 2 2022, 2:10 AM
mlir/include/mlir/Analysis/Presburger/Simplex.h
492–493

No, more ineqtypes will be added in future which I don't plan to add support for here.

Groverkss accepted this revision.Apr 2 2022, 2:55 AM

LGTM.

mlir/include/mlir/Analysis/Presburger/Simplex.h
492–493

Makes sense.

This revision is now accepted and ready to land.Apr 2 2022, 2:55 AM