[all-commits] [llvm/llvm-project] 8ed66c: [mlir][memref] Fix collapsed shape ops memref.cast...
Yi Zhang via All-commits
all-commits at lists.llvm.org
Wed Jul 28 03:20:14 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 8ed66cb88b7b00d7e9a96f2030e7ec343cfe2c6a
https://github.com/llvm/llvm-project/commit/8ed66cb88b7b00d7e9a96f2030e7ec343cfe2c6a
Author: Yi Zhang <cathyzhyi at google.com>
Date: 2021-07-28 (Wed, 28 Jul 2021)
Changed paths:
M mlir/include/mlir/Dialect/Linalg/IR/LinalgOps.td
M mlir/include/mlir/Dialect/Utils/ReshapeOpsUtils.h
M mlir/lib/Dialect/Linalg/IR/LinalgOps.cpp
M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
M mlir/lib/Dialect/Utils/ReshapeOpsUtils.cpp
M mlir/test/Dialect/MemRef/canonicalize.mlir
Log Message:
-----------
[mlir][memref] Fix collapsed shape ops memref.cast folding with changed type
`memref.collapse_shape` has verification logic to make sure
result dim must be static if all the collapsing src dims are static.
Cast folding might add more static information for the src operand
of `memref.collapse_shape` which might change a valid collapsing
operation to be invalid. Add `CollapseShapeOpMemRefCastFolder` pattern
to fix this.
Minor changes to `convertReassociationIndicesToExprs` to use `context`
instead of `builder` to avoid extra steps to construct temporary
builders.
Reviewed By: nicolasvasilache, mravishankar
Differential Revision: https://reviews.llvm.org/D106670
More information about the All-commits
mailing list