[all-commits] [llvm/llvm-project] f2d91a: [mlir][utils] Fix invalid reshapes in ComposeColla...
Matthias Springer via All-commits
all-commits at lists.llvm.org
Wed Nov 23 04:56:09 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f2d91a7ae1172d4cf8f06a0204a2dc64a0d68ea4
https://github.com/llvm/llvm-project/commit/f2d91a7ae1172d4cf8f06a0204a2dc64a0d68ea4
Author: Matthias Springer <springerm at google.com>
Date: 2022-11-23 (Wed, 23 Nov 2022)
Changed paths:
M mlir/include/mlir/Dialect/Utils/ReshapeOpsUtils.h
M mlir/lib/Dialect/MemRef/IR/MemRefOps.cpp
M mlir/lib/Dialect/Tensor/IR/TensorOps.cpp
M mlir/test/Dialect/MemRef/canonicalize.mlir
M mlir/test/Dialect/Tensor/canonicalize.mlir
Log Message:
-----------
[mlir][utils] Fix invalid reshapes in ComposeCollapseOfExpandOp
Do not generate CollapseShapeOps/ExpandShapeOps that have the same source and result shape. Generate casts instead. Such reshapes became invalid with D138498.
Differential Revision: https://reviews.llvm.org/D138557
More information about the All-commits
mailing list