This is an archive of the discontinued LLVM Phabricator instance.

[mlir][utils] Fix invalid reshapes in ComposeCollapseOfExpandOp
ClosedPublic

Authored by springerm on Nov 23 2022, 2:56 AM.

Details

Summary

Do not generate CollapseShapeOps/ExpandShapeOps that have the same source and result shape. Generate a cast instead. Such reshapes became invalid with D138498.

Diff Detail

Event Timeline

springerm created this revision.Nov 23 2022, 2:56 AM
springerm requested review of this revision.Nov 23 2022, 2:56 AM
nicolasvasilache accepted this revision.Nov 23 2022, 4:41 AM
This revision is now accepted and ready to land.Nov 23 2022, 4:41 AM