This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Do not return failure when all tile sizes are zero.
ClosedPublic

Authored by mravishankar on Nov 15 2021, 3:26 PM.

Details

Summary

Returning failure when tile sizes are all zero prevents the change in
the marker. This makes pattern rewriter run the pattern multiple times
only to exit when it hits a limit. Instead just clone the operation
(since tiling is essentially cloning in this case). Then the
transformation filter kicks in to avoid the pattern rewriter to be
invoked many times.

Diff Detail