Do not generate CollapseShapeOps/ExpandShapeOps that have the same source and result shape. Generate a cast instead. Such reshapes became invalid with D138498.
Details
Details
Summary
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
This revision is now accepted and ready to land.Nov 23 2022, 4:41 AM
Closed by commit rGf2d91a7ae117: [mlir][utils] Fix invalid reshapes in ComposeCollapseOfExpandOp (authored by springerm). · Explain WhyNov 23 2022, 4:56 AM
This revision was automatically updated to reflect the committed changes.