When the operand to the linalg.tensor_reshape op is a splat constant,
the result can be replaced with a splat constant of the same value but
different type.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D86117
[mlir][Linalg] Canonicalize tensor_reshape(splat-constant) -> splat-constant. ClosedPublic Authored by mravishankar on Aug 17 2020, 3:57 PM.
Details Summary When the operand to the linalg.tensor_reshape op is a splat constant,
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 17 2020, 4:15 PM Closed by commit rGa65a50540e3b: [mlir][Linalg] Canonicalize tensor_reshape(splat-constant) -> splat-constant. (authored by mravishankar). · Explain WhyAug 18 2020, 8:17 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 286285 mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/canonicalize.mlir
|