This is an archive of the discontinued LLVM Phabricator instance.

[mlir][Linalg] Add missing support for memory space to DropUnitDims
ClosedPublic

Authored by nicolasvasilache on Sep 1 2022, 4:05 AM.

Details

Summary

Previously, the memory space would not be propagated properly, creating invalid IR.

Diff Detail

Event Timeline

nicolasvasilache requested review of this revision.Sep 1 2022, 4:05 AM
Herald added a project: Restricted Project. · View Herald TranscriptSep 1 2022, 4:05 AM
tpopp accepted this revision.Sep 1 2022, 4:09 AM
This revision is now accepted and ready to land.Sep 1 2022, 4:09 AM
This revision was landed with ongoing or failed builds.Sep 1 2022, 4:10 AM
This revision was automatically updated to reflect the committed changes.

Thank you, Nicolas!

mlir/test/Dialect/Linalg/drop-unit-extent-dims.mlir
861–862

nit: wrap IR to 80 chars

873

nit: split the line, that way you won't need to do %{{.*}}

// CHECK: memref.collapse_shape 
// CHECK-SAME: [] memref<1x1xf32, 3> into memref<f32, 3>
nicolasvasilache marked 2 inline comments as done.Sep 1 2022, 4:39 AM
nicolasvasilache added inline comments.
mlir/test/Dialect/Linalg/drop-unit-extent-dims.mlir
873