This is an archive of the discontinued LLVM Phabricator instance.

[mlir] fix out-of-bounds in reduction tiling
ClosedPublic

Authored by ftynse on Jan 5 2023, 5:39 AM.

Details

Summary

A transformation tiling a reduction dimension of a Linalg op needs a
tile size for said dimension. When an insufficient number of dimensions
was provided, it would segfault due to out-of-bounds access to a vector.

Also fix incorrect error reporting in the structured transform op
exercising this functionality.

Diff Detail

Event Timeline

ftynse created this revision.Jan 5 2023, 5:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2023, 5:39 AM
ftynse requested review of this revision.Jan 5 2023, 5:39 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 5 2023, 5:39 AM
springerm accepted this revision.Jan 5 2023, 5:41 AM
springerm added inline comments.
mlir/test/Dialect/Linalg/transform-tile-reduction.mlir
309

typo?

This revision is now accepted and ready to land.Jan 5 2023, 5:41 AM
ThomasRaoux accepted this revision.Jan 5 2023, 6:08 AM
This revision was automatically updated to reflect the committed changes.