This is an archive of the discontinued LLVM Phabricator instance.

[MLIR][Linalg] Respect DPS in `lower_unpack`
ClosedPublic

Authored by chelini on Aug 21 2023, 12:47 AM.

Details

Summary

tensor.unpack implements the DPS (Destination Passing Style) interface
and expects the result to be "stored" in the outs operand, but this is
not the case with the current decomposition as the final operation is a
tensor.extract_slice that does not implement DPS. Add a linalg.copy
to fix the problem.

Diff Detail

Event Timeline

chelini created this revision.Aug 21 2023, 12:47 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 21 2023, 12:47 AM
chelini requested review of this revision.Aug 21 2023, 12:47 AM
springerm accepted this revision.Aug 21 2023, 3:44 AM
This revision is now accepted and ready to land.Aug 21 2023, 3:44 AM
This revision was automatically updated to reflect the committed changes.