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.
Paths
| Differential D112523
[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. Add test case for mod as well.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Oct 26 2021, 3:35 AM
This revision was landed with ongoing or failed builds.Oct 26 2021, 3:52 AM Closed by commit rG41a8b4600731: [MLIR] Fix AffineExpr getLargestKnownDivisor for ceildiv and floordiv (authored by bondhugula). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 382256 mlir/lib/IR/AffineExpr.cpp
mlir/test/Dialect/Affine/unroll.mlir
|
Nit: consider aligning check comments with the code below them.