Add pattern to fold a TensorCast into a PadTensorOp if the cast removes static size information.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D106278
[mlir][linalg] Fold TensorCast into PadTensorOp. ClosedPublic Authored by gysit on Jul 19 2021, 7:37 AM.
Details Summary Add pattern to fold a TensorCast into a PadTensorOp if the cast removes static size information.
Diff Detail
Event TimelineHerald added subscribers: dcaballe, cota, mravishankar and 17 others. · View Herald TranscriptJul 19 2021, 7:37 AM This revision is now accepted and ready to land.Jul 19 2021, 8:23 AM Closed by commit rG87656a3134c7: [mlir][linalg] Fold TensorCast into PadTensorOp. (authored by gysit). · Explain WhyJul 19 2021, 8:58 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 359812 mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
mlir/test/Dialect/Linalg/canonicalize.mlir
|