This is an archive of the discontinued LLVM Phabricator instance.

[mlir] simplify affine maps and operands in affine.min/max
ClosedPublic

Authored by ftynse on Feb 24 2020, 8:43 AM.

Details

Summary

Affine dialect already has a map+operand simplification infrastructure in
place. Plug the recently added affine.min/max operations into this
infrastructure and add a simple test. More complex behavior of the simplifier
is already tested by other ops.

Addresses https://bugs.llvm.org/show_bug.cgi?id=45008.

Diff Detail

Event Timeline

ftynse created this revision.Feb 24 2020, 8:43 AM
andydavis1 accepted this revision.Feb 24 2020, 8:53 AM

Thanks Alex!

This revision is now accepted and ready to land.Feb 24 2020, 8:53 AM
nicolasvasilache accepted this revision.Feb 24 2020, 9:06 AM
rriddle added inline comments.Feb 24 2020, 9:15 AM
mlir/include/mlir/Dialect/AffineOps/AffineOps.td
246

Weird spacing? builder-> getIndexType()

ftynse marked an inline comment as done.Feb 25 2020, 2:55 AM
This revision was automatically updated to reflect the committed changes.