This is an archive of the discontinued LLVM Phabricator instance.

[mlir][linalg] Swap extract_slice(fill(x)) ops
ClosedPublic

Authored by springerm on Jan 6 2023, 3:00 AM.

Details

Summary

This pattern is similar to FoldFillWithTensorReshape, which performs the same swapping with reshapes.

Fill the smaller extracted tensor slice instead of x. This allows for additional simplifications in case x is the result of another extract_slice.

Diff Detail

Event Timeline

springerm created this revision.Jan 6 2023, 3:00 AM
Herald added a project: Restricted Project. · View Herald Transcript
springerm requested review of this revision.Jan 6 2023, 3:00 AM
Herald added a project: Restricted Project. · View Herald TranscriptJan 6 2023, 3:00 AM
nicolasvasilache accepted this revision.Jan 6 2023, 3:26 AM
This revision is now accepted and ready to land.Jan 6 2023, 3:26 AM
This revision was automatically updated to reflect the committed changes.