This is an archive of the discontinued LLVM Phabricator instance.

[mlir] add lowering from affine.min to std
ClosedPublic

Authored by ftynse on Jan 27 2020, 8:17 AM.

Details

Summary

Affine minimum computation will be used in tiling transformation. The
implementation is mostly boilerplate as we already lower the minimum in the
upper bound of an affine loop.

Diff Detail

Event Timeline

ftynse created this revision.Jan 27 2020, 8:17 AM

Unit tests: pass. 62221 tests passed, 0 failed and 816 were skipped.

clang-tidy: pass.

clang-format: pass.

Build artifacts: diff.json, clang-tidy.txt, clang-format.patch, CMakeCache.txt, console-log.txt, test-results.xml

Pre-merge checks is in beta. Report issue. Please join beta or enable it for your project.

nicolasvasilache accepted this revision.Jan 27 2020, 9:06 AM
This revision is now accepted and ready to land.Jan 27 2020, 9:06 AM
This revision was automatically updated to reflect the committed changes.
rriddle added inline comments.Jan 27 2020, 1:45 PM
mlir/lib/Conversion/AffineToStandard/AffineToStandard.cpp
274

These should be ///

279

Can we just change expandAffineMap to use ValueRange instead?

ftynse marked 2 inline comments as done.Jan 27 2020, 1:57 PM
ftynse added inline comments.
mlir/lib/Conversion/AffineToStandard/AffineToStandard.cpp
274

The rest of the file uses //, so I went for consistency here. We can batch-update.

279

It affects more than just that function (I tried and stopped after third jump) so it's better of as a separate NFC change. WIll do.