This canonicalization is the counterpart of MemRefCastOp -> LinalgOp but on tensors.
This is needed to properly canonicalize post linalg tiling on tensors.
Paths
| Differential D88729
[mlir][Linalg] Canonicalize TensorCastOp away when it feeds a LinalgOp. ClosedPublic Authored by nicolasvasilache on Oct 2 2020, 4:50 AM.
Details Summary This canonicalization is the counterpart of MemRefCastOp -> LinalgOp but on tensors. This is needed to properly canonicalize post linalg tiling on tensors.
Diff Detail
Event TimelineHerald added subscribers: limo1996, stephenneuendorffer. · View Herald TranscriptOct 2 2020, 4:50 AM Comment Actions awesome!
This revision is now accepted and ready to land.Oct 3 2020, 4:23 AM This revision was landed with ongoing or failed builds.Oct 5 2020, 7:50 AM Closed by commit rG346b9d17720a: [mlir][Linalg] Canonicalize TensorCastOp away when it feeds a LinalgOp. (authored by nicolasvasilache). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 296184 mlir/include/mlir/Dialect/Linalg/IR/LinalgStructuredOpsInterface.td
mlir/include/mlir/Dialect/StandardOps/IR/Ops.h
mlir/include/mlir/Dialect/StandardOps/IR/Ops.td
mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/lib/Dialect/StandardOps/IR/Ops.cpp
mlir/test/Dialect/Linalg/canonicalize.mlir
|
I usually try to avoid having (void) for asserts when it's possible: