This is an archive of the discontinued LLVM Phabricator instance.

[MLIR] Fix AffineExpr getLargestKnownDivisor for ceildiv and floordiv
ClosedPublic

Authored by bondhugula on Oct 26 2021, 3:12 AM.

Details

Summary

Fix AffineExpr getLargestKnownDivisor for ceil/floor div cases.
In these cases, nothing can be inferred on the divisor of the
result.

Add test case for mod as well.

Diff Detail

Event Timeline

bondhugula created this revision.Oct 26 2021, 3:12 AM
bondhugula requested review of this revision.Oct 26 2021, 3:12 AM
ftynse accepted this revision.Oct 26 2021, 3:35 AM
This revision is now accepted and ready to land.Oct 26 2021, 3:35 AM
ftynse added inline comments.Oct 26 2021, 3:37 AM
mlir/test/Dialect/Affine/unroll.mlir
479

Nit: consider aligning check comments with the code below them.

bondhugula marked an inline comment as done.

Indent to align with code below.

This revision was landed with ongoing or failed builds.Oct 26 2021, 3:52 AM
This revision was automatically updated to reflect the committed changes.