This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Presburger] addSymbolicCut: fix the integral symbols heuristic to match the docs
ClosedPublic

Authored by arjunp on Apr 12 2022, 5:09 AM.

Details

Summary

Previously this checked if the entire symbolic numerator was divisible by the
denominator, which is never the case when this function is called. Fixed this to
check only the non-const coefficients in the numerator, which was what was
intended and documented.

Diff Detail

Event Timeline

arjunp created this revision.Apr 12 2022, 5:09 AM
Herald added a project: Restricted Project. · View Herald TranscriptApr 12 2022, 5:09 AM
arjunp requested review of this revision.Apr 12 2022, 5:09 AM
Groverkss accepted this revision.Apr 15 2022, 12:34 AM
Groverkss edited the summary of this revision. (Show Details)

LGTM.

This revision is now accepted and ready to land.Apr 15 2022, 12:34 AM
This revision was landed with ongoing or failed builds.Apr 15 2022, 12:34 PM
This revision was automatically updated to reflect the committed changes.