[all-commits] [llvm/llvm-project] 3ed3e4: [mlir] Move `memref.dim` canonicalization using `I...
MaheshRavishankar via All-commits
all-commits at lists.llvm.org
Wed Jun 16 22:13:29 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 3ed3e438a75d9cf756f6004b60dd5b3feec96b0b
https://github.com/llvm/llvm-project/commit/3ed3e438a75d9cf756f6004b60dd5b3feec96b0b
Author: MaheshRavishankar <ravishankarm at google.com>
Date: 2021-06-16 (Wed, 16 Jun 2021)
Changed paths:
M mlir/include/mlir/Dialect/MemRef/Transforms/Passes.h
M mlir/include/mlir/Dialect/MemRef/Transforms/Passes.td
M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
M mlir/lib/Dialect/MemRef/Transforms/CMakeLists.txt
A mlir/lib/Dialect/MemRef/Transforms/ResolveShapedTypeResultDims.cpp
M mlir/test/Dialect/Linalg/canonicalize.mlir
M mlir/test/Dialect/Linalg/fusion-sequence.mlir
M mlir/test/Dialect/Linalg/fusion-tensor-pattern.mlir
A mlir/test/Dialect/Linalg/resolve-shaped-type-result-dims.mlir
M mlir/test/Dialect/Linalg/tile-and-fuse-tensors.mlir
A mlir/test/Interfaces/InferShapedTypeOpInterface/resolve-shaped-type-result-dims.mlir
M mlir/test/Transforms/test-canonicalize.mlir
M mlir/test/lib/Dialect/Test/CMakeLists.txt
M mlir/test/lib/Dialect/Test/TestDialect.cpp
M mlir/test/lib/Dialect/Test/TestOps.td
Log Message:
-----------
[mlir] Move `memref.dim` canonicalization using `InferShapedTypeOpInterface` to a separate pass.
Based on dicussion in
[this](https://llvm.discourse.group/t/remove-canonicalizer-for-memref-dim-via-shapedtypeopinterface/3641)
thread the pattern to resolve the `memref.dim` of a value that is a
result of an operation that implements the
`InferShapedTypeOpInterface` is moved to a separate pass instead of
running it as a canonicalization pass. This allows shape resolution to
happen when explicitly required, instead of automatically through a
canonicalization.
Differential Revision: https://reviews.llvm.org/D104321
More information about the All-commits
mailing list